From 0df5a9390d41149dfc87440d72e7669ba96748ec Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Wed, 20 Mar 2013 01:18:10 +0000 Subject: From beroset: remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 attachment #10397 svn path=/trunk/; revision=48438 --- epan/value_string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/value_string.c') diff --git a/epan/value_string.c b/epan/value_string.c index 61e9ee7e88..77d65819ab 100644 --- a/epan/value_string.c +++ b/epan/value_string.c @@ -136,7 +136,7 @@ value_string_ext_new(value_string *vs, guint vs_tot_num_entries, const gchar *vs g_assert (vs_name != NULL); g_assert (vs_tot_num_entries > 0); g_assert (vs[vs_tot_num_entries-1].strptr == NULL); /* Null-terminated value-string ? */ - vse = g_malloc(sizeof (value_string_ext)); + vse = (value_string_ext *)g_malloc(sizeof (value_string_ext)); vse->_vs_p = vs; vse->_vs_num_entries = vs_tot_num_entries - 1; /* remember the actual number of entries */ vse->_vs_first_value = 0; /* initialized in _match_strval_ext_init */ -- cgit v1.2.3