#132 Uninitialized variable in fl_initialise_locale (main.c)

open
nobody
Linux (10)
5
2011-06-26
2011-06-26
Geza Geleji
No

The variable "locale" may still be uninitialized when it is passed to fl_set_codeset_, which calls strlen() on it.
Proposed fix: insert "memset(locale, 0, TEXTLEN);" right after the declaration "char locale[TEXTLEN];" in fl_initialise_locale of main.c. This seems to keep valgrind happy.

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks