From f7eb464f9dc41648b8a6573fcb8ce1703c1d13c4 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 20 Jun 2000 12:33:21 +0000 Subject: Correct pointer comparisons relying on NULL less than any other pointer. Alexander Aganichev's fix for ieee.c --- binutils/bucomm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'binutils/bucomm.c') diff --git a/binutils/bucomm.c b/binutils/bucomm.c index 76ffa60a17..86c327fd43 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; -- cgit v1.2.1