Merge pull request #60 from quarthex/patch-1

Do not use strlen to check that a string is empty
This commit is contained in:
Bryan Hundven 2015-04-14 08:21:08 -07:00
commit 00edcaf3a7

View File

@ -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)