mirror of
https://github.com/samba-team/samba.git
synced 2025-10-22 07:33:16 +03:00
r25184: Fix some C++ warnings and an uninitialized variable
(This used to be commit b64df8a3c5
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
f82eb0fef6
commit
ad97bcf813
@@ -995,7 +995,7 @@ BOOL in_list(const char *s, const char *list, BOOL casesensitive)
|
||||
/* We know a token can't be larger
|
||||
* than the entire list. */
|
||||
|
||||
tok = SMB_MALLOC(bufsize+1);
|
||||
tok = SMB_MALLOC_ARRAY(char, bufsize+1);
|
||||
if (!tok) {
|
||||
return False;
|
||||
}
|
||||
|
Reference in New Issue
Block a user