about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-06-26 10:51:36 -0400
committerRich Felker <dalias@aerifal.cx>2013-06-26 10:51:36 -0400
commit59b481d9702e6e09699ce22710ea150eb97c19d5 (patch)
treeee5cfc87b610498fdcf4bbf29d5d7bac5a017a61
parent11bc173765a22d460e090f46278ab4b96551a43b (diff)
downloadmusl-59b481d9702e6e09699ce22710ea150eb97c19d5.tar.gz
musl-59b481d9702e6e09699ce22710ea150eb97c19d5.tar.xz
musl-59b481d9702e6e09699ce22710ea150eb97c19d5.zip
remove useless conditional before free from dynamic linker path code
-rw-r--r--src/ldso/dynlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c
index eac07d9c..d1974736 100644
--- a/src/ldso/dynlink.c
+++ b/src/ldso/dynlink.c
@@ -479,7 +479,7 @@ static struct dso *load_library(const char *name)
 				FILE *f = fopen(ETC_LDSO_PATH, "rbe");
 				if (f) {
 					if (getdelim(&sys_path, (size_t[1]){0}, 0, f) <= 0) {
-						if (sys_path) free(sys_path);
+						free(sys_path);
 						sys_path = "";
 					}
 					fclose(f);