diff options
author | Romain <romain.deoux@gmail.com> | 2015-03-15 15:00:22 +0100 |
---|---|---|
committer | Romain <romain.deoux@gmail.com> | 2015-03-15 15:00:22 +0100 |
commit | c1c11893674df2f32862851ded5e31b8480e13b0 (patch) | |
tree | 1d7cb93dceb8883ec763d824b600ca93abc8c0ac /patches | |
parent | d74f1cc2561bf6ae6b0f21743402415408087654 (diff) | |
download | crosstool-ng-c1c11893674df2f32862851ded5e31b8480e13b0.tar.gz crosstool-ng-c1c11893674df2f32862851ded5e31b8480e13b0.tar.bz2 crosstool-ng-c1c11893674df2f32862851ded5e31b8480e13b0.zip |
Do not use strlen to check that a string is empty
Here, the exact size of a not empty string is useless.
Diffstat (limited to 'patches')
-rw-r--r-- | patches/binutils/2.25/300-012_check_ldrunpath_length.patch | 2 |
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 16365b93..f1f31af9 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) |