summaryrefslogtreecommitdiffstats
path: root/lib/libalpm
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-11-07 16:16:10 +0100
committerDan McGee <dan@archlinux.org>2011-11-07 16:16:10 +0100
commit1a994bf180003b814b135a5acd6f3e2aa67121fc (patch)
tree98f542ca7515e911f2bbd6549ef62f78f3269fe7 /lib/libalpm
parent90477f156c18659eee6e8be75122169060309990 (diff)
parente7b56f48d704f57f023d7ca3cdc9d492fb31a9cb (diff)
downloadpacman-1a994bf180003b814b135a5acd6f3e2aa67121fc.tar.gz
pacman-1a994bf180003b814b135a5acd6f3e2aa67121fc.tar.xz
Merge branch 'maint'
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
index 57869d3b..cbc5bdfb 100644
--- a/lib/libalpm/util.c
+++ b/lib/libalpm/util.c
@@ -217,7 +217,7 @@ char *_alpm_strtrim(char *str)
size_t _alpm_strip_newline(char *str)
{
size_t len;
- if(str == '\0') {
+ if(*str == '\0') {
return 0;
}
len = strlen(str);