Fix a 0 and '/0' switch
It looks like someone accidentally put a 0 instead of '/0', this fixes it. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
bbe55b5ce9
commit
d6d7435a6c
1 changed files with 1 additions and 1 deletions
|
@ -510,7 +510,7 @@ int _alpm_pkg_splitname(const char *target, char *name, char *version, int witha
|
||||||
if(witharch) {
|
if(witharch) {
|
||||||
/* trim architecture */
|
/* trim architecture */
|
||||||
if((p = alpm_pkg_name_hasarch(tmp))) {
|
if((p = alpm_pkg_name_hasarch(tmp))) {
|
||||||
*p = 0;
|
*p = '\0';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue