From 84b9f02f6d72e4be97aebdc25d6a47f011f2b78f Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Thu, 14 Feb 2013 14:53:46 +0100 Subject: Compare pointer with NULL rather than autopromote to int. --- lib/conn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.1