libsmbconf: allow NULL sharename in smbconf_share_exists().
authorMichael Adam <obnox@samba.org>
Tue, 15 Apr 2008 12:36:39 +0000 (14:36 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 15 Apr 2008 15:40:27 +0000 (17:40 +0200)
Michael
(This used to be commit cb23052b2055d77924b2a593ec14f0c1de9a3b51)

source3/lib/smbconf/smbconf.c

index 541b163bfb66542ab19af3b204fbf248e76128f1..0359e000d38b3c09cf899f7c0e8d3c9b710758d8 100644 (file)
@@ -183,9 +183,6 @@ WERROR smbconf_get_share_names(struct smbconf_ctx *ctx,
 bool smbconf_share_exists(struct smbconf_ctx *ctx,
                          const char *servicename)
 {
-       if (servicename == NULL) {
-               return false;
-       }
        return ctx->ops->share_exists(ctx, servicename);
 }