fix windows code analysis problems

This commit is contained in:
Jeff Lenk committed 2011-05-25 23:51:48 -05:00
1 parent 3aff2bdcbc
commit 55c24567bd
3 files changed
+5 -2

No files matched your search

+1
View File
@@ -1053,6 +1053,7 @@ static int add_array(esl_event_t *event, const char *var, const char *val)
data = strdup(val + 7);
len = (sizeof(char *) * max) + 1;
esl_assert(len == 0);
array = malloc(len);
memset(array, 0, len);