summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-03-29 06:57:04 +0200
committerDan McGee <dan@archlinux.org>2007-03-29 06:57:04 +0200
commitd6d7435a6c687c8599b9b5ebe54cccd067795cf0 (patch)
tree841766bcf209846437931f9bf577a30a9b3a2d0f
parentbbe55b5ce9f5c43e1c9d5e7e326429175b207ba0 (diff)
downloadpacman-d6d7435a6c687c8599b9b5ebe54cccd067795cf0.tar.gz
pacman-d6d7435a6c687c8599b9b5ebe54cccd067795cf0.tar.xz
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>
-rw-r--r--lib/libalpm/package.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c
index d1bbcda3..35a76591 100644
--- a/lib/libalpm/package.c
+++ b/lib/libalpm/package.c
@@ -510,7 +510,7 @@ int _alpm_pkg_splitname(const char *target, char *name, char *version, int witha
if(witharch) {
/* trim architecture */
if((p = alpm_pkg_name_hasarch(tmp))) {
- *p = 0;
+ *p = '\0';
}
}