mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
Correct pointer comparisons relying on NULL less than any other pointer.
Alexander Aganichev's fix for ieee.c
This commit is contained in:
@ -575,7 +575,7 @@ set_scripts_dir ()
|
||||
{
|
||||
/* We could have \foo\bar, or /foo\bar. */
|
||||
char *bslash = strrchr (program_name, '\\');
|
||||
if (bslash > end)
|
||||
if (end == NULL || (bslash != NULL && bslash > end))
|
||||
end = bslash;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user