summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2013-06-04 18:21:16 +0200
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2013-06-04 18:21:16 +0200
commit9c6d83f07aae8ca9005e4764c7ee2eebc72cb00a (patch)
treeb31ff1dece1feb28af75f9750bbc3622b6085cab /src/main.c
parent7f384e37279dcab8dcad0149293483a23aa7aec4 (diff)
downloadratpoison-9c6d83f07aae8ca9005e4764c7ee2eebc72cb00a.zip
fix logic in strtok_ws
bug reported by Ellington Santos on the mailing-list, thanks!
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index de2a793..3855bac 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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)
{