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:
parent
544066530b
commit
4aad9d3b58
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue