]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-network: accept all space-like separators
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 24 Sep 2022 00:05:05 +0000 (09:05 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 27 Sep 2022 01:42:31 +0000 (10:42 +0900)
src/libsystemd/sd-network/sd-network.c

index e4f5f9bc03173abb72c9316f067ebeda41a861de..92ee8bc073ccb1d3f5c12f8e4535745c9f36b4ea 100644 (file)
@@ -73,7 +73,7 @@ static int network_get_strv(const char *key, char ***ret) {
                 return 0;
         }
 
-        a = strv_split(s, " ");
+        a = strv_split(s, NULL);
         if (!a)
                 return -ENOMEM;
 
@@ -138,7 +138,7 @@ static int network_link_get_strv(int ifindex, const char *key, char ***ret) {
                 return 0;
         }
 
-        a = strv_split(s, " ");
+        a = strv_split(s, NULL);
         if (!a)
                 return -ENOMEM;