summaryrefslogtreecommitdiff
path: root/source4/lib/wins_srv.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/wins_srv.c')
-rw-r--r--source4/lib/wins_srv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/wins_srv.c b/source4/lib/wins_srv.c
index 094de8d6b0..0338db8b3d 100644
--- a/source4/lib/wins_srv.c
+++ b/source4/lib/wins_srv.c
@@ -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;