summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain <romain.deoux@gmail.com>2015-03-15 14:00:22 (GMT)
committerRomain <romain.deoux@gmail.com>2015-03-15 14:00:22 (GMT)
commitc1c11893674df2f32862851ded5e31b8480e13b0 (patch)
tree1d7cb93dceb8883ec763d824b600ca93abc8c0ac
parentd74f1cc2561bf6ae6b0f21743402415408087654 (diff)
Do not use strlen to check that a string is empty
Here, the exact size of a not empty string is useless.
-rw-r--r--patches/binutils/2.25/300-012_check_ldrunpath_length.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/patches/binutils/2.25/300-012_check_ldrunpath_length.patch b/patches/binutils/2.25/300-012_check_ldrunpath_length.patch
index 16365b9..f1f31af 100644
--- a/patches/binutils/2.25/300-012_check_ldrunpath_length.patch
+++ b/patches/binutils/2.25/300-012_check_ldrunpath_length.patch
@@ -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)