diff pidgin/win32/winpidgin.c @ 23667:bd789c20f577

Fix a crash in the win32 loader when %PATH% isn't set.
author Daniel Atallah <daniel.atallah@gmail.com>
date Wed, 30 Jul 2008 20:22:22 +0000
parents ab5b9acebde3
children 85189641a970
line wrap: on
line diff
--- a/pidgin/win32/winpidgin.c	Wed Jul 30 20:08:45 2008 +0000
+++ b/pidgin/win32/winpidgin.c	Wed Jul 30 20:22:22 2008 +0000
@@ -461,7 +461,7 @@
 		}
 		strcat(perl_path, "bin");
 
-		if (!strstr(path, perl_path)) {
+		if (path == NULL || !strstr(path, perl_path)) {
 			int newlen = (path ? strlen(path) : 0) + strlen(perl_path) + 10;
 			char *newpath = malloc(newlen);
 			*newpath = '\0';