1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +00:00

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]
This commit is contained in:
Ben Harris 2002-11-17 02:00:06 +00:00
parent 563eef2870
commit 9902bc67fc

View File

@ -670,7 +670,7 @@ void get_sesslist(struct sesslist *list, int allocate)
buflen = bufsize = 0; buflen = bufsize = 0;
list->buffer = NULL; list->buffer = NULL;
if ((handle = enum_settings_start())) { if ((handle = enum_settings_start()) != NULL) {
do { do {
ret = enum_settings_next(handle, otherbuf, sizeof(otherbuf)); ret = enum_settings_next(handle, otherbuf, sizeof(otherbuf));
if (ret) { if (ret) {