summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-08-29 20:46:28 -0400
committerDan McGee <dan@archlinux.org>2011-08-29 19:53:58 -0500
commitb3c0ae5205ee9615af077ff00b1a01be3aab4eb6 (patch)
treea9064c0b47281833f6fcffaaa3e28bb8ca6eff1d /src
parent7480df68ce7fe60e93dd833faf83dd5f2d6149c1 (diff)
downloadpacman-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>
Diffstat (limited to 'src')
-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;
}