diff options
Diffstat (limited to 'wcsmbs/wcstok.c')
-rw-r--r-- | wcsmbs/wcstok.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/wcsmbs/wcstok.c b/wcsmbs/wcstok.c index 1e8c95fe7f..5ce6061e93 100644 --- a/wcsmbs/wcstok.c +++ b/wcsmbs/wcstok.c @@ -32,13 +32,15 @@ wcstok (wcs, delim, save_ptr) wchar_t *result; if (wcs == NULL) - if (*save_ptr == NULL) - { - __set_errno (EINVAL); - return NULL; - } - else - wcs = *save_ptr; + { + if (*save_ptr == NULL) + { + __set_errno (EINVAL); + return NULL; + } + else + wcs = *save_ptr; + } /* Scan leading delimiters. */ wcs += wcsspn (wcs, delim); |