diff options
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/ldmain.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 130c8dd..cc5df52 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2000-06-20 Alan Modra <alan@linuxcare.com.au> + + * ldmain.c (set_scripts_dir): Correct pointer comparison when + checking for backslashes. + 2000-06-19 Alan Modra <alan@linuxcare.com.au> * NEWS: Move entries not in 2.10 above "Changes in version 2.10". diff --git a/ld/ldmain.c b/ld/ldmain.c index 9cb55ed..660ea94 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -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 |