in "if" conditions is enough. Use an actual comparison against NULL instead.
git-svn-id: svn://svn.tartarus.org/sgt/putty@2216
cda61777-01e9-0310-a592-
d414129be87e
buflen = bufsize = 0;
list->buffer = NULL;
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) {
do {
ret = enum_settings_next(handle, otherbuf, sizeof(otherbuf));
if (ret) {