From 9902bc67fc7e702858710b90f83814b336d4eeb7 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sun, 17 Nov 2002 02:00:06 +0000 Subject: [PATCH] Apple's C compilers don't think that putting parentheses around assignments in "if" conditions is enough. Use an actual comparison against NULL instead. [originally from svn r2216] --- settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings.c b/settings.c index 833a10d2..47524db6 100644 --- a/settings.c +++ b/settings.c @@ -670,7 +670,7 @@ void get_sesslist(struct sesslist *list, int allocate) buflen = bufsize = 0; list->buffer = NULL; - if ((handle = enum_settings_start())) { + if ((handle = enum_settings_start()) != NULL) { do { ret = enum_settings_next(handle, otherbuf, sizeof(otherbuf)); if (ret) {