Mercurial > pidgin.yaz
changeset 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 | c31012d6f708 |
children | c014c3fe0de9 |
files | pidgin/win32/winpidgin.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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';