summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-08-30 02:46:28 +0200
committerDan McGee <dan@archlinux.org>2011-08-30 02:53:58 +0200
commitb3c0ae5205ee9615af077ff00b1a01be3aab4eb6 (patch)
treea9064c0b47281833f6fcffaaa3e28bb8ca6eff1d
parent7480df68ce7fe60e93dd833faf83dd5f2d6149c1 (diff)
downloadpacman-b3c0ae5205ee9615af077ff00b1a01be3aab4eb6.tar.gz
pacman-b3c0ae5205ee9615af077ff00b1a01be3aab4eb6.tar.xz
pacsort: use boolean, not binary OR operation
Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--src/util/pacsort.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/pacsort.c b/src/util/pacsort.c
index 77edda7a..2b12f097 100644
--- a/src/util/pacsort.c
+++ b/src/util/pacsort.c
@@ -129,7 +129,7 @@ static int list_grow(struct list_t *list)
static int list_add(struct list_t *list, char *name)
{
- if(!list|!name) {
+ if(!list || !name) {
return 1;
}