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");
|
||||
if (!path)
|
||||
goto done;
|
||||
p = strdup(path);
|
||||
p = xstrdup(path);
|
||||
if (!p)
|
||||
goto done;
|
||||
|
||||
|
|
Loading…
Reference in New Issue