diff options
author | Alan Modra <amodra@gmail.com> | 2000-06-20 12:33:21 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2000-06-20 12:33:21 +0000 |
commit | 2ab47eed68c82a9a6d055ba3f49ca6a8a1dd2575 (patch) | |
tree | f16dbfc601991f71c0177a7027479b3d3e3f9247 /binutils/bucomm.c | |
parent | b305ef96a167be657a95d273db6945fe7597e937 (diff) | |
download | gdb-2ab47eed68c82a9a6d055ba3f49ca6a8a1dd2575.zip gdb-2ab47eed68c82a9a6d055ba3f49ca6a8a1dd2575.tar.gz gdb-2ab47eed68c82a9a6d055ba3f49ca6a8a1dd2575.tar.bz2 |
Correct pointer comparisons relying on NULL less than any other pointer.
Alexander Aganichev's fix for ieee.c
Diffstat (limited to 'binutils/bucomm.c')
-rw-r--r-- | binutils/bucomm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/bucomm.c b/binutils/bucomm.c index 76ffa60..86c327f 100644 --- a/binutils/bucomm.c +++ b/binutils/bucomm.c @@ -219,7 +219,7 @@ make_tempname (filename) { /* We could have foo/bar\\baz, or foo\\bar, or d:bar. */ char *bslash = strrchr (filename, '\\'); - if (bslash > slash) + if (slash == NULL || (bslash != NULL && bslash > slash)) slash = bslash; if (slash == NULL && filename[0] != '\0' && filename[1] == ':') slash = filename + 1; |