From 43a1c4ce04cf9301b88c8df31087fe84dcb7e232 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Tue, 22 May 2018 14:47:44 +0300 Subject: Minor fix * src/wordsplit.c (wordsplit_run): Return consistent error code. --- src/wordsplit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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, if (!command) { if (!(flags & WRDSF_INCREMENTAL)) - return EINVAL; + return _wsplt_seterr (wsp, WRDSE_USAGE); if (wsp->ws_head) return wordsplit_finish (wsp); -- cgit v1.2.1