projects
/
u
/
mdw
/
putty
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e63ae27
)
Apple's C compilers don't think that putting parentheses around assignments
author
ben
<ben@cda61777-01e9-0310-a592-d414129be87e>
Sun, 17 Nov 2002 02:00:06 +0000
(
02:00
+0000)
committer
ben
<ben@cda61777-01e9-0310-a592-d414129be87e>
Sun, 17 Nov 2002 02:00:06 +0000
(
02:00
+0000)
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
settings.c
patch
|
blob
|
blame
|
history
diff --git
a/settings.c
b/settings.c
index
833a10d
..
47524db
100644
(file)
--- 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) {