mirror of
https://github.com/samba-team/samba.git
synced 2025-12-02 00:23:50 +03:00
r4055: fixed more places to use type safe allocation macros
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
b0f6e21481
commit
eec698254f
@@ -204,7 +204,7 @@ char **wins_srv_tags(void)
|
||||
if (lp_wins_support()) {
|
||||
/* give the caller something to chew on. This makes
|
||||
the rest of the logic simpler (ie. less special cases) */
|
||||
ret = (char **)malloc(sizeof(char *)*2);
|
||||
ret = malloc_array_p(char *, 2);
|
||||
if (!ret) return NULL;
|
||||
ret[0] = strdup("*");
|
||||
ret[1] = NULL;
|
||||
|
||||
Reference in New Issue
Block a user