summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2013-02-14 14:53:46 +0100
committerLinus Nordberg <linus@nordberg.se>2013-02-14 14:53:46 +0100
commit84b9f02f6d72e4be97aebdc25d6a47f011f2b78f (patch)
tree45e44ec6ef9d357f8edca4643d18b56789998fc3
parentb8f84e2abdf4c20c922a41cb4431013899b4212d (diff)
Compare pointer with NULL rather than autopromote to int.
-rw-r--r--lib/conn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/conn.c b/lib/conn.c
index 1143353..47f0361 100644
--- a/lib/conn.c
+++ b/lib/conn.c
@@ -66,7 +66,7 @@ rs_conn_create (struct rs_context *ctx,
c->realm = r;
c->peers = r->peers; /* FIXME: Copy instead? */
- for (p = c->peers; p; p = p->next)
+ for (p = c->peers; p != NULL; p = p->next)
p->conn = c;
c->timeout.tv_sec = r->timeout;
c->tryagain = r->retries;