summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/xsetwacom.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c
index 824ee3f..6405545 100644
--- a/tools/xsetwacom.c
+++ b/tools/xsetwacom.c
@@ -1150,6 +1150,8 @@ static char** strjoinsplit(int argc, char **argv, int *nwords)
strcat(buff, " ");
}
+ *nwords = 0;
+
for (tmp = buff; tmp && *tmp != '\0'; tmp = index((const char*)tmp, ' ') + 1)
(*nwords)++;