From 59b481d9702e6e09699ce22710ea150eb97c19d5 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 26 Jun 2013 10:51:36 -0400 Subject: [PATCH] remove useless conditional before free from dynamic linker path code --- src/ldso/dynlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1