diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-03-02 16:19:08 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-03-02 16:19:08 -0500 |
commit | d49db7d0981861d979765647cce3c6468a012301 (patch) | |
tree | f6d8c12a34978292337954daa85acd5031b4c8ec /src/shlib.c | |
parent | e30c8ffa406e377432bae6a9b7fbd41b046da201 (diff) | |
download | spmc-d49db7d0981861d979765647cce3c6468a012301.tar.gz |
Refactor startswith() and endswidth() usage
Diffstat (limited to 'src/shlib.c')
-rw-r--r-- | src/shlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |