pidgin: 2113f1ac: Fix a crash in the win32 loader when %PA...

datallah at pidgin.im datallah at pidgin.im
Wed Jul 30 17:22:40 EDT 2008


-----------------------------------------------------------------
Revision: 2113f1ac56e583feda4411886d36d9af5ed1646e
Ancestor: 89a04be49862e586a5927e6198221125935fec47
Author: datallah at pidgin.im
Date: 2008-07-30T20:22:22
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/2113f1ac56e583feda4411886d36d9af5ed1646e

Modified files:
        pidgin/win32/winpidgin.c

ChangeLog: 

Fix a crash in the win32 loader when %PATH% isn't set.

-------------- next part --------------
============================================================
--- pidgin/win32/winpidgin.c	1373b3dff229c97a3e48e3167789c1d35c3b376b
+++ pidgin/win32/winpidgin.c	863f53e4c2109e9216f366ffa62c4b1ab4faa38b
@@ -461,7 +461,7 @@ static void winpidgin_add_perl_to_path()
 		}
 		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';


More information about the Commits mailing list