chiark / gitweb /
bus: fix bus_print_property with strv
[elogind.git] / src / libsystemd-bus / bus-match.c
index 49fc6335c23d0815b951a5aefd25fb7655e951e1..61b8a5cd8878570b034b52b8df33b97e8d33e89a 100644 (file)
@@ -153,7 +153,7 @@ static bool value_node_test(
                  * should contain all well-known names of the sender,
                  * hence we can fix things there correctly. */
 
-                if (node->value.str[0] != ':' && value_str[0] == ':')
+                if (node->value.str[0] != ':' && value_str && value_str[0] == ':')
                         return true;
 
                 return false;