From c1c11893674df2f32862851ded5e31b8480e13b0 Mon Sep 17 00:00:00 2001 From: Romain Date: Sun, 15 Mar 2015 15:00:22 +0100 Subject: Do not use strlen to check that a string is empty Here, the exact size of a not empty string is useless. 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) -- cgit v0.10.2-6-g49f6