1
0
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:
Volker Lendecke 2008-04-06 12:26:15 +02:00
parent 18bf2b2028
commit c274fe7d21

View File

@ -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;
}