]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib/pager: use xalloc
authorKarel Zak <kzak@redhat.com>
Fri, 2 Jun 2017 10:07:36 +0000 (12:07 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 2 Jun 2017 10:07:36 +0000 (12:07 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/pager.c

index b90d6398ae31621c2f50c1179762884d6fdd6ca9..04111bab7a0dd5a5e9ac6f4c0bc2f50225f6906a 100644 (file)
@@ -186,7 +186,7 @@ static int has_command(const char *cmd)
        path = getenv("PATH");
        if (!path)
                goto done;
-       p = strdup(path);
+       p = xstrdup(path);
        if (!p)
                goto done;