diff options
author | Linus Nordberg <linus@nordberg.se> | 2013-02-14 14:53:46 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2013-02-14 14:53:46 +0100 |
commit | 84b9f02f6d72e4be97aebdc25d6a47f011f2b78f (patch) | |
tree | 45e44ec6ef9d357f8edca4643d18b56789998fc3 | |
parent | b8f84e2abdf4c20c922a41cb4431013899b4212d (diff) |
Compare pointer with NULL rather than autopromote to int.
-rw-r--r-- | lib/conn.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |