summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak2017-06-02 12:07:36 +0200
committerKarel Zak2017-06-02 12:07:36 +0200
commit99791a1984f0328aa83cbc055daebc06167599a4 (patch)
tree900768b0463fa8f26ee0174876d3454dad4945e0
parenttests: update build-sys test (diff)
downloadkernel-qcow2-util-linux-99791a1984f0328aa83cbc055daebc06167599a4.tar.gz
kernel-qcow2-util-linux-99791a1984f0328aa83cbc055daebc06167599a4.tar.xz
kernel-qcow2-util-linux-99791a1984f0328aa83cbc055daebc06167599a4.zip
lib/pager: use xalloc
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--lib/pager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pager.c b/lib/pager.c
index b90d6398a..04111bab7 100644
--- a/lib/pager.c
+++ b/lib/pager.c
@@ -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;