summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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 12286c6a..fbb320ef 100644
--- a/lib/libalpm/util.c
+++ b/lib/libalpm/util.c
@@ -221,7 +221,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);