libsmbconf: parse an empty share as empty share, not as NULL.
[ira/wip.git] / lib / smbconf / smbconf_txt.c
index 37b01df3d302f024166a92602971ae9f7c985d79..2114841b817240cea846b65f348bfbd187c41b96 100644 (file)
@@ -453,11 +453,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);