[TRE-general] Bug in TRE 0.7.5: Undefined HAVE_MBSTATE_T strips essential declaration
Sebastian Pipping
webmaster at hartwork.org
Wed Mar 21 19:03:47 EET 2007
Hello!
This code is copied from regcomp.c:
00068 #ifdef HAVE_MBSTATE_T
00069 mbstate_t state;
00070 memset(&state, '\0', sizeof(state));
00071 #endif /* HAVE_MBSTATE_T */
00072 while (n > 0)
00073 {
00074 consumed = tre_mbrtowc(wcptr, regex, n, &state);
If HAVE_MBSTATE_T is off then "state" will be used
in line 74 though undeclared.
Sebastian
More information about the TRE-general
mailing list