s3/swat: Fix creation of the first share using SWAT.
[samba.git] / source / web / swat.c
index 47c40cbd0e2563e1d618e5bfe296f5083a9079a1..39efc790edb782cc7217c668e931a1987d55f202 100644 (file)
@@ -474,7 +474,7 @@ static int save_reload(int snum)
        }
 
        write_config(f, False);
-       if (snum)
+       if (snum >= 0)
                lp_dump_one(f, False, snum);
        fclose(f);