mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-05 13:32:48 -05: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:
@ -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) {
|
||||||
|
Reference in New Issue
Block a user