diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/wordsplit.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wordsplit.c b/src/wordsplit.c index 48312bb..b38dde4 100644 --- a/src/wordsplit.c +++ b/src/wordsplit.c | |||
@@ -2688,2 +2688,4 @@ wordsplit_run (const char *command, size_t length, struct wordsplit *wsp, | |||
2688 | 2688 | ||
2689 | /* Initialize error context early */ | ||
2690 | wsp->ws_errctx = NULL; | ||
2689 | if (!command) | 2691 | if (!command) |
@@ -2798,2 +2800,6 @@ wordsplit_free (struct wordsplit *ws) | |||
2798 | { | 2800 | { |
2801 | if (ws->ws_errno == WRDSE_USAGE) | ||
2802 | /* Usage error: the structure is not properly initialized and there's | ||
2803 | nothing to free. */ | ||
2804 | return; | ||
2799 | wordsplit_clearerr (ws); | 2805 | wordsplit_clearerr (ws); |