diff options
author | antoine <antoine@FreeBSD.org> | 2008-03-17 18:22:23 +0000 |
---|---|---|
committer | antoine <antoine@FreeBSD.org> | 2008-03-17 18:22:23 +0000 |
commit | 73a86dc5752cffbcba16d44ac6f37d681f3c0ad4 (patch) | |
tree | acd5d54843c10379a2d9a3a5eec6902e2a6ac3cd /lib | |
parent | 97df7d0709a6e2e4402791cc551593c5b9c3d173 (diff) | |
download | FreeBSD-src-73a86dc5752cffbcba16d44ac6f37d681f3c0ad4.zip FreeBSD-src-73a86dc5752cffbcba16d44ac6f37d681f3c0ad4.tar.gz |
Don't allocate the constant array "props" on the stack in wctype.
PR: 74743
Submitted by: knut st. osmundsen
Approved by: rwatson (mentor)
MFC after: 1 month
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/locale/wctype.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/locale/wctype.c b/lib/libc/locale/wctype.c index f9aa8dd..f94a735 100644 --- a/lib/libc/locale/wctype.c +++ b/lib/libc/locale/wctype.c @@ -42,7 +42,7 @@ iswctype(wint_t wc, wctype_t charclass) wctype_t wctype(const char *property) { - struct { + static const struct { const char *name; wctype_t mask; } props[] = { |