s4: fix various warnings (not "const" related ones)
[sfrench/samba-autobuild/.git] / source4 / ntvfs / simple / vfs_simple.c
index aabaa3c47f7852961ddf89afd353a1d139e417b5..9577e8673a504496f31ee7a1fe5f2ec8fe984974 100644 (file)
@@ -70,9 +70,9 @@ static NTSTATUS svfs_connect(struct ntvfs_module_context *ntvfs,
        }
 
        if (strncmp(sharename, "\\\\", 2) == 0) {
-               char *p = strchr(sharename+2, '\\');
-               if (p) {
-                       sharename = p + 1;
+               char *p2 = strchr(sharename+2, '\\');
+               if (p2) {
+                       sharename = p2 + 1;
                }
        }