aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wordsplit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wordsplit.c b/src/wordsplit.c
index 4e633fa..af747b3 100644
--- a/src/wordsplit.c
+++ b/src/wordsplit.c
@@ -838,5 +838,5 @@ wordsplit_finish (struct wordsplit *wsp)
else
{
- wsp->ws_error = WRDSE_EOF;
+ wsp->ws_errno = WRDSE_EOF;
return WRDSE_EOF;
}
@@ -1164,5 +1164,5 @@ wsplt_assign_param (struct wordsplit *wsp, int param_idx, char *value)
if (param_idx < 0)
- return WRDSE_BADPARAM;
+ return _wsplt_seterr (wsp, WRDSE_BADPARAM);
if (param_idx == wsp->ws_paramc)
{
@@ -1211,5 +1211,5 @@ wsplt_assign_param (struct wordsplit *wsp, int param_idx, char *value)
}
else if (param_idx > wsp->ws_paramc)
- return WRDSE_BADPARAM;
+ return _wsplt_seterr (wsp, WRDSE_BADPARAM);
v = strdup (value);

Return to:

Send suggestions and report system problems to the System administrator.