mirror of
git://git.gnu.org.ua/wordsplit.git
synced 2025-04-25 16:19:54 +03:00
Minor fix
* src/wordsplit.c (wordsplit_run): Return consistent error code.
This commit is contained in:
parent
9ccdca6ec3
commit
8923c8c06f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue