X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/e63ae276e98f0b99468fc34c3671cd3c69701ecf..1728c0128e97cd2b529e1af3fc4ba730018991dd:/settings.c 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) {