mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 17:51:22 +03:00
udev: 'val' may be NULL, use strempty()
This commit is contained in:
parent
ed30802324
commit
7e8bd58eb1
@ -139,7 +139,7 @@ int udev_builtin_add_property(sd_device *dev, bool test, const char *key, const
|
||||
key, val ? "=" : "", strempty(val));
|
||||
|
||||
if (test)
|
||||
printf("%s=%s\n", key, val);
|
||||
printf("%s=%s\n", key, strempty(val));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user