From d49db7d0981861d979765647cce3c6468a012301 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 2 Mar 2020 16:19:08 -0500 Subject: Refactor startswith() and endswidth() usage --- src/shlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shlib.c') diff --git a/src/shlib.c b/src/shlib.c index 1a427f6..db79cc3 100644 --- a/src/shlib.c +++ b/src/shlib.c @@ -59,7 +59,7 @@ StrList *shlib_deps(const char *filename) { // AFAIK when "NEEDED" is present, a string containing the library name is guaranteed to be there for (size_t i = 0; data[i] != NULL; i++) { data[i] = normalize_space(data[i]); - if (startswith(data[i], "NEEDED") == 0) { + if (startswith(data[i], "NEEDED")) { char **field = split(data[i], " "); strlist_append(result, field[1]); split_free(field); -- cgit