mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-24 15:06:42 +00:00
Do not use strlen to check that a string is empty
Here, the exact size of a not empty string is useless.
This commit is contained in:
parent
d74f1cc256
commit
c1c1189367
@ -15,7 +15,7 @@ index 137446f..bb8391a 100644
|
|||||||
rpath = command_line.rpath;
|
rpath = command_line.rpath;
|
||||||
if (rpath == NULL)
|
if (rpath == NULL)
|
||||||
rpath = (const char *) getenv ("LD_RUN_PATH");
|
rpath = (const char *) getenv ("LD_RUN_PATH");
|
||||||
+ if ((rpath) && (strlen (rpath) == 0))
|
+ if ((rpath) && (*rpath == '\0'))
|
||||||
+ rpath = NULL;
|
+ rpath = NULL;
|
||||||
|
|
||||||
for (abfd = link_info.input_bfds; abfd; abfd = abfd->link.next)
|
for (abfd = link_info.input_bfds; abfd; abfd = abfd->link.next)
|
||||||
|
Loading…
Reference in New Issue
Block a user