s3-libnetjoin: fix build warning.
authorGünther Deschner <gd@samba.org>
Fri, 21 Nov 2008 14:56:30 +0000 (15:56 +0100)
committerGünther Deschner <gd@samba.org>
Fri, 21 Nov 2008 14:57:14 +0000 (15:57 +0100)
Guenther

source3/libnet/libnet_join.c

index bb59a2b0a2d38544e5e8dd73dee45daa0172c30b..bd127f8607619fbe7ab4eae97a870ab09e7c9b1f 100644 (file)
@@ -1690,7 +1690,7 @@ static WERROR libnet_join_check_config(TALLOC_CTX *mem_ctx,
                }
 
                if (!valid_security) {
-                       const char *sec;
+                       const char *sec = NULL;
                        switch (lp_security()) {
                        case SEC_SHARE: sec = "share"; break;
                        case SEC_USER:  sec = "user"; break;