mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-18 18:56:31 +00:00
Merge pull request #60 from quarthex/patch-1
Do not use strlen to check that a string is empty
This commit is contained in:
commit
00edcaf3a7
@ -15,7 +15,7 @@ index 137446f..bb8391a 100644
|
||||
rpath = command_line.rpath;
|
||||
if (rpath == NULL)
|
||||
rpath = (const char *) getenv ("LD_RUN_PATH");
|
||||
+ if ((rpath) && (strlen (rpath) == 0))
|
||||
+ if ((rpath) && (*rpath == '\0'))
|
||||
+ rpath = NULL;
|
||||
|
||||
for (abfd = link_info.input_bfds; abfd; abfd = abfd->link.next)
|
||||
|
Loading…
Reference in New Issue
Block a user