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:
parent
1fd65359f6
commit
23cb9c49e3
@ -1,4 +1,3 @@
|
||||
|
||||
/*
|
||||
Unix SMB/CIFS implementation.
|
||||
SMB client library implementation (server cache)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user