summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;