diff options
author | Roy Marples <roy@marples.name> | 2007-04-06 01:04:07 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-04-06 01:04:07 +0000 |
commit | 657be653400bdb9fc8ab13037e51ecfbc1af9d40 (patch) | |
tree | 8e876d2a345eb56dff9b7c732a082bc00720d020 /src/strlist.h | |
parent | 308042c87bd920d787265f1854bf1695bdbab8e4 (diff) |
Misc fixes, plugged a memory leak in runscript.c and use va_copy to avoid nasty segfaults
Diffstat (limited to 'src/strlist.h')
-rw-r--r-- | src/strlist.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strlist.h b/src/strlist.h index 25bbb4e0..d3d54709 100644 --- a/src/strlist.h +++ b/src/strlist.h @@ -18,7 +18,7 @@ it should usually by +1 from what you expect, and should only be used in the scope of the macro) */ #define STRLIST_FOREACH(_list, _pos, _counter) \ - if ((_list) && _list[0] && ((_counter = 0) == 0)) \ + if ((_list) && _list[0] && ! (_counter = 0)) \ while ((_pos = _list[_counter++])) #endif /* __STRLIST_H__ */ |