Fix a compiler warning.

Change-Id: I5b4b518982dc6033842b1e791e67d2faddfb5487
Reviewed-on: https://code.wireshark.org/review/1777
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2014-05-24 14:21:06 -07:00
parent 1b6cc6320e
commit d5b173009c
1 changed files with 1 additions and 1 deletions

View File

@ -414,7 +414,7 @@ register_pcapng_block_type_handler(guint block_type, block_reader read,
g_direct_equal,
NULL, g_free);
}
handler = g_malloc(sizeof *handler);
handler = (block_handler *)g_malloc(sizeof *handler);
handler->read = read;
handler->write = write;
(void)g_hash_table_insert(block_handlers, GUINT_TO_POINTER(block_type),