mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +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:
parent
563eef2870
commit
9902bc67fc
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user