diff options
-rw-r--r-- | source/smbwrapper/smbw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/smbwrapper/smbw.c b/source/smbwrapper/smbw.c index 6ae6146ed22..b8071b45a0b 100644 --- a/source/smbwrapper/smbw.c +++ b/source/smbwrapper/smbw.c @@ -341,6 +341,9 @@ int smbw_path(const char *path) char *cwd; int len; + if(!path) + return 0; + /* this is needed to prevent recursion with the BSD malloc which opens /etc/malloc.conf on the first call */ if (strncmp(path,"/etc/", 5) == 0) { |