changeset 5753:96214f5de47c

[gaim-migrate @ 6178] This should fix a bug we have on win32 when passing NULL to strcmp(). committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 05 Jun 2003 00:30:12 +0000
parents 90eea4997759
children 48aac80b5d83
files src/gtkprefs.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);