commit | 59b481d9702e6e09699ce22710ea150eb97c19d5 | [log] [tgz] |
---|---|---|
author | Rich Felker <dalias@aerifal.cx> | Wed Jun 26 10:51:36 2013 -0400 |
committer | Rich Felker <dalias@aerifal.cx> | Wed Jun 26 10:51:36 2013 -0400 |
tree | ee5cfc87b610498fdcf4bbf29d5d7bac5a017a61 | |
parent | 11bc173765a22d460e090f46278ab4b96551a43b [diff] [blame] |
remove useless conditional before free from dynamic linker path code
diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c index eac07d9..d197473 100644 --- a/src/ldso/dynlink.c +++ b/src/ldso/dynlink.c
@@ -479,7 +479,7 @@ 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);