diff options
Diffstat (limited to 'src/wordsplit.c')
-rw-r--r-- | src/wordsplit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wordsplit.c b/src/wordsplit.c index dab6c4d..5468297 100644 --- a/src/wordsplit.c +++ b/src/wordsplit.c | |||
@@ -2400,7 +2400,7 @@ wordsplit_run (const char *command, size_t length, struct wordsplit *wsp, | |||
2400 | if (!command) | 2400 | if (!command) |
2401 | { | 2401 | { |
2402 | if (!(flags & WRDSF_INCREMENTAL)) | 2402 | if (!(flags & WRDSF_INCREMENTAL)) |
2403 | return EINVAL; | 2403 | return _wsplt_seterr (wsp, WRDSE_USAGE); |
2404 | 2404 | ||
2405 | if (wsp->ws_head) | 2405 | if (wsp->ws_head) |
2406 | return wordsplit_finish (wsp); | 2406 | return wordsplit_finish (wsp); |