lib/pager: use xalloc
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
2a57a232b6
commit
99791a1984
|
@ -186,7 +186,7 @@ static int has_command(const char *cmd)
|
||||||
path = getenv("PATH");
|
path = getenv("PATH");
|
||||||
if (!path)
|
if (!path)
|
||||||
goto done;
|
goto done;
|
||||||
p = strdup(path);
|
p = xstrdup(path);
|
||||||
if (!p)
|
if (!p)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue