summaryrefslogtreecommitdiffstats
path: root/gl/wcrtomb.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-11-06 08:24:23 (GMT)
committerGitHub <noreply@github.com>2024-11-06 08:24:23 (GMT)
commit9b4df9e50837cc837e113053ba12ee6967d5e6c2 (patch)
treebf989e771579f835bcb49c074637a8e224bcecbc /gl/wcrtomb.c
parent94150ae347beb25ac369d5773834ceef7f3736d3 (diff)
parent5be04ec2ceb1df77afbca4fcbf9e92a712612d6f (diff)
downloadmonitoring-plugins-9b4df9e50837cc837e113053ba12ee6967d5e6c2.tar.gz
Merge pull request #2037 from RincewindsHat/update/gnulib-1.0
Sync with the latest Gnulib code (d4ec02b3cc) (gnulib v1.0)
Diffstat (limited to 'gl/wcrtomb.c')
-rw-r--r--gl/wcrtomb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gl/wcrtomb.c b/gl/wcrtomb.c
index 48a6c8e..197b020 100644
--- a/gl/wcrtomb.c
+++ b/gl/wcrtomb.c
@@ -1,5 +1,5 @@
1/* Convert wide character to multibyte character. 1/* Convert wide character to multibyte character.
2 Copyright (C) 2008-2023 Free Software Foundation, Inc. 2 Copyright (C) 2008-2024 Free Software Foundation, Inc.
3 Written by Bruno Haible <bruno@clisp.org>, 2008. 3 Written by Bruno Haible <bruno@clisp.org>, 2008.
4 4
5 This file is free software: you can redistribute it and/or modify 5 This file is free software: you can redistribute it and/or modify
@@ -29,7 +29,7 @@ wcrtomb (char *s, wchar_t wc, mbstate_t *ps)
29#undef wcrtomb 29#undef wcrtomb
30{ 30{
31 /* This implementation of wcrtomb supports only stateless encodings. 31 /* This implementation of wcrtomb supports only stateless encodings.
32 ps must be in the initial state. */ 32 ps must be in an initial state. */
33 if (ps != NULL && !mbsinit (ps)) 33 if (ps != NULL && !mbsinit (ps))
34 { 34 {
35 errno = EINVAL; 35 errno = EINVAL;