summaryrefslogtreecommitdiff
path: root/path-list.c
diff options
context:
space:
mode:
Diffstat (limited to 'path-list.c')
-rw-r--r--path-list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/path-list.c b/path-list.c
index b1ee72d..0c332dc 100644
--- a/path-list.c
+++ b/path-list.c
@@ -45,7 +45,7 @@ static int add_entry(struct path_list *list, const char *path)
(list->nr - index)
* sizeof(struct path_list_item));
list->items[index].path = list->strdup_paths ?
- strdup(path) : (char *)path;
+ xstrdup(path) : (char *)path;
list->items[index].util = NULL;
list->nr++;