Fix compilation warning

Change-Id: Ia7922415d8b22ba0c5a04ad6940c7e10bc205d57
Reviewed-on: https://code.wireshark.org/review/2371
Reviewed-by: Evan Huus <eapache@gmail.com>
This commit is contained in:
Yan Burman 2014-06-18 10:18:39 +03:00 committed by Evan Huus
parent 544066530b
commit 4aad9d3b58
1 changed files with 2 additions and 2 deletions

View File

@ -225,7 +225,7 @@ tvbparse_wanted_t* tvbparse_chars(const int id,
char *accept_str;
gsize i;
accept_str = g_malloc(256);
accept_str = (char *)g_malloc(256);
memset(accept_str, 0x00, 256);
for (i = 0; chr[i]; i++)
accept_str[(unsigned) chr[i]] = 0xFF;
@ -305,7 +305,7 @@ tvbparse_wanted_t* tvbparse_not_chars(const int id,
gsize i;
/* cond_chars_common() use accept string, so mark all elements with, and later unset from reject */
accept_str = g_malloc(256);
accept_str = (char *)g_malloc(256);
memset(accept_str, 0xFF, 256);
for (i = 0; chr[i]; i++)
accept_str[(unsigned) chr[i]] = '\0';