diff options
author | Derrell Lipman <derrell.lipman@unwireduniverse.com> | 2008-03-01 21:19:52 -0500 |
---|---|---|
committer | Derrell Lipman <derrell.lipman@unwireduniverse.com> | 2008-03-01 21:19:52 -0500 |
commit | fc65c6698e74e40828e218dc2e6de0c094bfe6e0 (patch) | |
tree | 772d4ee7d52581ae74aa739354106df5740e641b /source3/libsmb | |
parent | 4a3410b766a1121804ec2d901bf788354aa197e6 (diff) | |
download | samba-fc65c6698e74e40828e218dc2e6de0c094bfe6e0.tar.gz samba-fc65c6698e74e40828e218dc2e6de0c094bfe6e0.tar.bz2 samba-fc65c6698e74e40828e218dc2e6de0c094bfe6e0.zip |
Return NULL, not 0, from a function which returns a pointer.
(This used to be commit 23cb9c49e3724cecaa66655ef64c3111bf14c552)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/libsmb_cache.c | 1 | ||||
-rw-r--r-- | source3/libsmb/libsmb_context.c | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/source3/libsmb/libsmb_cache.c b/source3/libsmb/libsmb_cache.c index ff13fd7eac..c45aba4544 100644 --- a/source3/libsmb/libsmb_cache.c +++ b/source3/libsmb/libsmb_cache.c @@ -1,4 +1,3 @@ - /* Unix SMB/CIFS implementation. SMB client library implementation (server cache) diff --git a/source3/libsmb/libsmb_context.c b/source3/libsmb/libsmb_context.c index 8af49d12be..c107ab2220 100644 --- a/source3/libsmb/libsmb_context.c +++ b/source3/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); |