mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
Fix a C++ warning
This commit is contained in:
parent
18bf2b2028
commit
c274fe7d21
@ -147,7 +147,7 @@ static bool next_token_alloc(const char **ptr,
|
||||
}
|
||||
|
||||
/* We started with len = 1 so we have space for the nul. */
|
||||
*pp_buff = malloc(len);
|
||||
*pp_buff = (char *)malloc(len);
|
||||
if (!*pp_buff) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user