lib/pager: use xalloc

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2017-06-02 12:07:36 +02:00
parent 2a57a232b6
commit 99791a1984
1 changed files with 1 additions and 1 deletions

View 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;