summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerrell Lipman <derrell.lipman@unwireduniverse.com>2008-03-01 21:19:52 -0500
committerKarolin Seeger <ks@sernet.de>2008-03-04 09:00:26 +0100
commit9b4bd6473ed3f93c1bbfae3f82d0a100e832df48 (patch)
tree33794eedd16c30ad5ef704e7e77d773828df89c5
parentb7f10bd31dec8047ea996c4738a6db5535c9261a (diff)
downloadsamba-9b4bd6473ed3f93c1bbfae3f82d0a100e832df48.tar.gz
samba-9b4bd6473ed3f93c1bbfae3f82d0a100e832df48.tar.xz
samba-9b4bd6473ed3f93c1bbfae3f82d0a100e832df48.zip
Return NULL, not 0, from a function which returns a pointer.
(cherry picked from commit 23cb9c49e3724cecaa66655ef64c3111bf14c552)
-rw-r--r--source/libsmb/libsmb_cache.c1
-rw-r--r--source/libsmb/libsmb_context.c4
2 files changed, 2 insertions, 3 deletions
diff --git a/source/libsmb/libsmb_cache.c b/source/libsmb/libsmb_cache.c
index ff13fd7eac7..c45aba45441 100644
--- a/source/libsmb/libsmb_cache.c
+++ b/source/libsmb/libsmb_cache.c
@@ -1,4 +1,3 @@
-
/*
Unix SMB/CIFS implementation.
SMB client library implementation (server cache)
diff --git a/source/libsmb/libsmb_context.c b/source/libsmb/libsmb_context.c
index 8af49d12be6..c107ab22203 100644
--- a/source/libsmb/libsmb_context.c
+++ b/source/libsmb/libsmb_context.c
@@ -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);