udev: 'val' may be NULL, use strempty()

This commit is contained in:
Yu Watanabe
2019-01-16 13:34:04 +01:00
committed by Zbigniew Jędrzejewski-Szmek
parent ed30802324
commit 7e8bd58eb1
+1 -1
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;
}