1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

Return NULL, not 0, from a function which returns a pointer.

This commit is contained in:
Derrell Lipman 2008-03-01 21:19:52 -05:00
parent 1fd65359f6
commit 23cb9c49e3
2 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,3 @@
/*
Unix SMB/CIFS implementation.
SMB client library implementation (server cache)

View 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);