index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aaron Griffin <aaron@archlinux.org> | 2007-02-10 09:36:36 +0000 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2007-02-10 09:36:36 +0000 |
commit | c55ea22c584596897be792fb7a788f04a363b5a8 (patch) | |
tree | 260717c7e942a81f62a5fa88e4be80f0f055eb3b /lib/libalpm/alpm.c | |
parent | a382d33d45d5e6c2a8ccca8fc946555f6123416f (diff) |
-rw-r--r-- | lib/libalpm/alpm.c | 9 |
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c index 5872b139..8ca491b8 100644 --- a/lib/libalpm/alpm.c +++ b/lib/libalpm/alpm.c @@ -593,14 +593,15 @@ char SYMEXPORT *alpm_pkg_name_hasarch(char *pkgname) arch = _supported_archs[i]; /* whee, case insensitive compare */ - while(*arch && *cmp && tolower(*arch++) == tolower(*cmp++)) ; - if(*arch || *cmp) continue; + if(*arch || *cmp) { + continue; + } - return p; + return(p); } } - return NULL; + return(NULL); } /** @} */ |