From: Rich Felker Date: Wed, 26 Jun 2013 14:51:36 +0000 (-0400) Subject: remove useless conditional before free from dynamic linker path code X-Git-Tag: v0.9.11~21 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=59b481d9702e6e09699ce22710ea150eb97c19d5;p=oweals%2Fmusl.git remove useless conditional before free from dynamic linker path code --- 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);