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:
parent
6b6bfc7b31
commit
85f9771aec
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user