diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2013-06-04 18:21:16 +0200 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2013-06-04 18:21:16 +0200 |
commit | 9c6d83f07aae8ca9005e4764c7ee2eebc72cb00a (patch) | |
tree | b31ff1dece1feb28af75f9750bbc3622b6085cab | |
parent | 7f384e37279dcab8dcad0149293483a23aa7aec4 (diff) | |
download | ratpoison-9c6d83f07aae8ca9005e4764c7ee2eebc72cb00a.zip |
fix logic in strtok_ws
bug reported by Ellington Santos on the mailing-list, thanks!
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -171,7 +171,7 @@ strtok_ws (char *s) char *nonws; static char *last = NULL; - if (s == NULL) + if (s != NULL) last = s; else if (last == NULL) { |