lib: Fix CID 241650 Sizeof not portable
[samba.git] / source3 / lib / util_str.c
index 314c7eac33237be5ae604dff28c0a9879939534a..967beda1c5d96bfbd8ec3544aaa8458b0e07ca8d 100644 (file)
@@ -1282,7 +1282,7 @@ char **str_list_make_v3(TALLOC_CTX *mem_ctx, const char *string,
                        list = tmp;
 
                        memset (&list[num], 0,
-                               ((sizeof(char**)) * (S_LIST_ABS +1)));
+                               ((sizeof(char*)) * (S_LIST_ABS +1)));
                }
 
                list[num] = tok;