]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib/path: (test) fix ul_new_path() use
authorKarel Zak <kzak@redhat.com>
Fri, 18 Jun 2021 15:02:38 +0000 (17:02 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 18 Jun 2021 15:02:38 +0000 (17:02 +0200)
lib/path.c

index 7576328d7cd230cc0073a46850a89a8746cee4b8..21f9bd1c46c82bba0d871ab8bf5dccd0a0f6ffa5 100644 (file)
@@ -1106,7 +1106,7 @@ int main(int argc, char *argv[])
 
        ul_path_init_debug();
 
-       pc = ul_new_path(dir);
+       pc = ul_new_path("%s", dir);
        if (!pc)
                err(EXIT_FAILURE, "failed to initialize path context");
        if (prefix)