changeset 16831:fd620cbc5149

Additional fix for another crash similar to #412.
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 03 May 2007 16:50:31 +0000
parents 41f85148a60f
children 844ed0418744
files pidgin/gtkrequest.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkrequest.c	Thu May 03 15:37:25 2007 +0000
+++ b/pidgin/gtkrequest.c	Thu May 03 16:50:31 2007 +0000
@@ -1556,7 +1556,7 @@
 	}
 
 #ifdef _WIN32
-	if (!folder_set) {
+	if (!folder_set && (filename == NULL || *filename == '\0' || !g_file_test(filename, G_FILE_TEST_EXISTS))) {
 		char *my_documents = wpurple_get_special_folder(CSIDL_PERSONAL);
 
 		if (my_documents != NULL) {