From b0ef1a67ed0fe5556bed03bc759e0087b1911d8a Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Mon, 14 Jan 2013 23:23:50 +0000 Subject: =?UTF-8?q?strcmp=20=E2=86=92=20g=5Fstrcmp0.=20Fixes=20a=20crash?= =?UTF-8?q?=20on=20Windows.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/trunk/; revision=47085 --- epan/prefs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'epan/prefs.c') diff --git a/epan/prefs.c b/epan/prefs.c index cf6568d14b..9c3fc78f86 100644 --- a/epan/prefs.c +++ b/epan/prefs.c @@ -1365,7 +1365,7 @@ static char * column_hidden_to_str_cb(pref_t* pref, gboolean default_val) { static gboolean column_hidden_is_default_cb(pref_t* pref) { char *cur_hidden_str = column_hidden_to_str_cb(pref, FALSE); - gboolean is_default = strcmp(cur_hidden_str, pref->default_val.string) == 0; + gboolean is_default = g_strcmp0(cur_hidden_str, pref->default_val.string) == 0; g_free(cur_hidden_str); return is_default; @@ -1557,10 +1557,10 @@ static gboolean column_format_is_default_cb(pref_t* pref) { while (pref_col && def_col) { cfmt = (fmt_data *) pref_col->data; def_cfmt = (fmt_data *) def_col->data; - if ((strcmp(cfmt->title, def_cfmt->title) != 0) || + if ((g_strcmp0(cfmt->title, def_cfmt->title) != 0) || (cfmt->fmt != def_cfmt->fmt) || (((cfmt->fmt == COL_CUSTOM) && (cfmt->custom_field)) && - ((strcmp(cfmt->custom_field, def_cfmt->custom_field) != 0) || + ((g_strcmp0(cfmt->custom_field, def_cfmt->custom_field) != 0) || (cfmt->resolved != def_cfmt->resolved)))) { is_default = FALSE; break; -- cgit v1.2.3