libsmbconf: parse an empty share as empty share, not as NULL.
[obnox/samba-ctdb.git] / lib / smbconf / smbconf_txt.c
index 501382cc5fd0416ab50fe61f69ffe7bc9ba69092..fc6fccaf98acf55bee732c37959c27ae5a08c286 100644 (file)
@@ -452,11 +452,7 @@ static WERROR smbconf_txt_get_share(struct smbconf_ctx *ctx,
        }
 
        tmp_service->num_params = count;
-       if (count > 0) {
-               *service = talloc_move(mem_ctx, &tmp_service);
-       } else {
-               *service = NULL;
-       }
+       *service = talloc_move(mem_ctx, &tmp_service);
 
 done:
        talloc_free(tmp_ctx);