1
0
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:
Andrew Tridgell
2004-12-03 07:20:30 +00:00
committed by Gerald (Jerry) Carter
parent b0f6e21481
commit eec698254f
31 changed files with 64 additions and 67 deletions

View File

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