Browse Source

remove useless conditional before free from dynamic linker path code

Rich Felker 11 years ago
parent
commit
59b481d970
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ldso/dynlink.c

+ 1 - 1
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);