# HG changeset patch # User Daniel Atallah # Date 1217449342 0 # Node ID bd789c20f5770eb637f4c3fe882e03bc5e7986dd # Parent c31012d6f70868e62d0bb9d9390e922af525e69d Fix a crash in the win32 loader when %PATH% isn't set. diff -r c31012d6f708 -r bd789c20f577 pidgin/win32/winpidgin.c --- 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';