NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lib/48025: Uninitializied variable in citrus_utf1632.c
>Number: 48025
>Category: lib
>Synopsis: Uninitializied variable in citrus_utf1632.c
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jul 06 14:00:00 +0000 2013
>Originator: Henning Petersen
>Release: NetBSD-current
>Organization:
>Environment:
>Description:
Uninitializied variable wc in citrus_utf1632.c .
>How-To-Repeat:
>Fix:
diff -u -p -r1.12 citrus_utf1632.c
--- lib/libc/citrus/modules/citrus_utf1632.c 12 Feb 2012 13:51:29 -0000
1.12
+++ lib/libc/citrus/modules/citrus_utf1632.c 6 Jul 2013 12:27:19 -0000
@@ -93,7 +93,7 @@ _citrus_UTF1632_mbrtowc_priv(_UTF1632Enc
size_t *nresult)
{
int chlenbak, endian, needlen;
- wchar_t wc;
+ wchar_t wc = L'\0';
size_t result;
const char *s0;
Home |
Main Index |
Thread Index |
Old Index