aboutsummaryrefslogtreecommitdiff
path: root/libX11/src/FSWrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'libX11/src/FSWrap.c')
-rw-r--r--libX11/src/FSWrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libX11/src/FSWrap.c b/libX11/src/FSWrap.c
index a94709365..94d94fbe9 100644
--- a/libX11/src/FSWrap.c
+++ b/libX11/src/FSWrap.c
@@ -131,7 +131,7 @@ copy_string_list(
char **string_list_ret, **list_src, **list_dst, *dst;
int length, count;
- if (string_list == NULL)
+ if (string_list == NULL || list_count == 0)
return (char **) NULL;
string_list_ret = (char **) Xmalloc(sizeof(char *) * list_count);