diff options
author | Rich Felker <dalias@aerifal.cx> | 2013-06-26 10:51:36 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2013-06-26 10:51:36 -0400 |
commit | 59b481d9702e6e09699ce22710ea150eb97c19d5 (patch) | |
tree | ee5cfc87b610498fdcf4bbf29d5d7bac5a017a61 /src | |
parent | 11bc173765a22d460e090f46278ab4b96551a43b (diff) | |
download | musl-59b481d9702e6e09699ce22710ea150eb97c19d5.tar.gz musl-59b481d9702e6e09699ce22710ea150eb97c19d5.tar.bz2 musl-59b481d9702e6e09699ce22710ea150eb97c19d5.tar.xz musl-59b481d9702e6e09699ce22710ea150eb97c19d5.zip |
remove useless conditional before free from dynamic linker path code
Diffstat (limited to 'src')
-rw-r--r-- | src/ldso/dynlink.c | 2 |
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); |