mirror of
https://github.com/systemd/systemd.git
synced 2025-01-03 05:18:09 +03:00
udev: do logging before setting variables to NULL
gcc-9 diagnoses this as an error. Reported by Jeff Law.
This commit is contained in:
parent
06156ed2cf
commit
a6ca3c1921
@ -2231,13 +2231,12 @@ int udev_rules_apply_to_event(
|
||||
r = hashmap_put(event->seclabel_list, name, label);
|
||||
if (r < 0)
|
||||
return log_oom();
|
||||
|
||||
name = label = NULL;
|
||||
|
||||
log_device_debug(dev, "SECLABEL{%s}='%s' %s:%u",
|
||||
name, label,
|
||||
rules_str(rules, rule->rule.filename_off),
|
||||
rule->rule.filename_line);
|
||||
name = label = NULL;
|
||||
|
||||
break;
|
||||
}
|
||||
case TK_A_ENV: {
|
||||
|
Loading…
Reference in New Issue
Block a user