chiark / gitweb /
macro: clean up usage of gcc attributes
[elogind.git] / src / shared / util.c
index 54dbace193f236576edc73e0ad8ceb07e4162174..182277030440d34840ce9d1ad032736d25f5b6be 100644 (file)
@@ -4461,7 +4461,7 @@ int glob_extend(char ***strv, const char *path) {
         char **p;
 
         errno = 0;
-        k = glob(optarg, GLOB_NOSORT|GLOB_BRACE, NULL, &g);
+        k = glob(path, GLOB_NOSORT|GLOB_BRACE, NULL, &g);
 
         if (k == GLOB_NOMATCH)
                 return -ENOENT;