# HG changeset patch # User Christian Hammond # Date 1054773012 0 # Node ID 96214f5de47c251418b50bda53d998f29d08149f # Parent 90eea499775926bc34ac43598bb7aaf6c047666c [gaim-migrate @ 6178] This should fix a bug we have on win32 when passing NULL to strcmp(). committer: Tailor Script diff -r 90eea4997759 -r 96214f5de47c src/gtkprefs.c --- a/src/gtkprefs.c Wed Jun 04 19:46:48 2003 +0000 +++ b/src/gtkprefs.c Thu Jun 05 00:30:12 2003 +0000 @@ -296,7 +296,8 @@ gtk_menu_shell_append(GTK_MENU_SHELL(menu), opt); if ((type == GAIM_PREF_INT && stored_int == int_value) || - (type == GAIM_PREF_STRING && !strcmp(stored_str, str_value)) || + (type == GAIM_PREF_STRING && stored_str != NULL && + !strcmp(stored_str, str_value)) || (type == GAIM_PREF_BOOLEAN && gaim_prefs_get_bool(bool_key))) { gtk_menu_set_active(GTK_MENU(menu), o);