Return NULL, not 0, from a function which returns a pointer.
authorDerrell Lipman <derrell.lipman@unwireduniverse.com>
Sun, 2 Mar 2008 02:19:52 +0000 (21:19 -0500)
committerDerrell Lipman <derrell.lipman@unwireduniverse.com>
Sun, 2 Mar 2008 02:19:52 +0000 (21:19 -0500)
(This used to be commit 23cb9c49e3724cecaa66655ef64c3111bf14c552)

source3/libsmb/libsmb_cache.c
source3/libsmb/libsmb_context.c

index ff13fd7eac79a56ed78661ebdd4196b577007ffd..c45aba454416e1b89de2dae0875a6f2c9d01322c 100644 (file)
@@ -1,4 +1,3 @@
-
 /* 
    Unix SMB/CIFS implementation.
    SMB client library implementation (server cache)
index 8af49d12be6b1cdcb563ba9691f0a9498c316536..c107ab222030897fa415d82018d325be6472c898 100644 (file)
@@ -424,7 +424,7 @@ smbc_init_context(SMBCCTX *context)
         
         /* Do not initialise the same client twice */
         if (context->internal->initialized) {
-                return 0;
+                return NULL;
         }
         
         if (!context->server.get_auth_data_fn ||
@@ -446,7 +446,7 @@ smbc_init_context(SMBCCTX *context)
                 
                 /* Set this to what the user wants */
                 DEBUGLEVEL = context->config.debug;
-                
+               
                 load_case_tables();
                 
                 setup_logging("libsmbclient", True);