summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/vfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c
index a8b350b9cd..3dc55cf536 100644
--- a/source3/smbd/vfs.c
+++ b/source3/smbd/vfs.c
@@ -334,7 +334,7 @@ BOOL smbd_vfs_init(connection_struct *conn)
handle->handle = NULL;
DLIST_ADD(conn->vfs_private, handle);
vfs_module = NULL;
- if (vfs_path) {
+ if (vfs_path && *vfs_path) {
asprintf(&vfs_module, "%s/%s", vfs_path, vfs_objects[j]);
} else {
asprintf(&vfs_module, "%s", vfs_objects[j]);