mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Explicitly initialise two more static pointers
"dtcm: Coverity 88006" fixed this for buf, but not for string in the same function (and we may as well initialise string_head for consistency too).
This commit is contained in:
parent
162c88b6ea
commit
ae499c794e
1 changed files with 2 additions and 2 deletions
|
@ -621,8 +621,8 @@ cm_mbstrlen(char *s) {
|
|||
*/
|
||||
extern char *
|
||||
cm_mbchar(char *str) {
|
||||
static char *string;
|
||||
static char *string_head;
|
||||
static char *string = NULL;
|
||||
static char *string_head = NULL;
|
||||
static char *buf = NULL;
|
||||
int num_byte = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue