# HG changeset patch # User Ka-Hing Cheung # Date 1189377945 0 # Node ID 5a051296836c0ac7b2c07d8637c3b2f71d47be6c # Parent a5a9dbd1bdebdaa618242041b668a510d2e1f1dd Probably Fixes 1649 diff -r a5a9dbd1bdeb -r 5a051296836c libpurple/prefs.c --- a/libpurple/prefs.c Sun Sep 09 22:01:40 2007 +0000 +++ b/libpurple/prefs.c Sun Sep 09 22:45:45 2007 +0000 @@ -329,9 +329,13 @@ purple_prefs_set_string_list(pref_name_full->str, NULL); break; case PURPLE_PREF_PATH: - decoded = g_filename_from_utf8(pref_value, -1, NULL, NULL, NULL); - purple_prefs_set_path(pref_name_full->str, decoded); - g_free(decoded); + if (pref_value) { + decoded = g_filename_from_utf8(pref_value, -1, NULL, NULL, NULL); + purple_prefs_set_path(pref_name_full->str, decoded); + g_free(decoded); + } else { + purple_prefs_set_path(pref_name_full->str, NULL); + } break; case PURPLE_PREF_PATH_LIST: purple_prefs_set_path_list(pref_name_full->str, NULL);