Avoid crashing if gccPlatform is NULL, thanks Axel!

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27968 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2008-10-11 08:41:54 +00:00
parent 6b6bfc7b31
commit 85f9771aec
1 changed files with 1 additions and 1 deletions

View File

@ -722,7 +722,7 @@ analyze_object_gcc_version(int fd, image_t* image, Elf32_Ehdr& eheader,
gccMinor = version[2];
}
if (gccMajor == 2 && strcmp(gccPlatform, "haiku"))
if (gccMajor == 2 && gccPlatform != NULL && strcmp(gccPlatform, "haiku"))
isHaiku = false;
}