diff options
-rw-r--r-- | source/client/client.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/client/client.c b/source/client/client.c index a132b705844..5bc125ad075 100644 --- a/source/client/client.c +++ b/source/client/client.c @@ -481,6 +481,11 @@ static void do_list_helper(file_info *f, const char *mask, void *state) pstring mask2; char *p; + if (!f->name[0]) { + d_printf("Empty dir name returned. Possible server misconfiguration.\n"); + return; + } + pstrcpy(mask2, mask); p = strrchr_m(mask2,'\\'); if (!p) return; |