1
0
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:
Yu Watanabe 2019-01-16 13:02:04 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent ed30802324
commit 7e8bd58eb1

View File

@ -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;
}