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/mirrors.c | |
parent | e30c8ffa406e377432bae6a9b7fbd41b046da201 (diff) | |
download | spmc-d49db7d0981861d979765647cce3c6468a012301.tar.gz |
Refactor startswith() and endswidth() usage
Diffstat (limited to 'src/mirrors.c')
-rw-r--r-- | src/mirrors.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mirrors.c b/src/mirrors.c index 6a67623..a4a17c2 100644 --- a/src/mirrors.c +++ b/src/mirrors.c @@ -93,7 +93,7 @@ char **mirror_list(const char *filename) { result = calloc(count + 1, sizeof(char **)); for (size_t i = 0; mirrors[i] != NULL; i++) { - if (startswith(mirrors[i], "#") == 0 || isempty(mirrors[i])) { + if (startswith(mirrors[i], "#") || isempty(mirrors[i])) { continue; } result[i] = join((char *[]) {mirrors[i], SPM_GLOBAL.repo_target, NULL}, DIRSEPS); |