projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
162c88b
)
Explicitly initialise two more static pointers
author
Adam Sampson
<ats@offog.org>
Sat, 26 Jan 2019 00:07:36 +0000
(
00:07
+0000)
committer
Adam Sampson
<ats@offog.org>
Sat, 26 Jan 2019 00:07:36 +0000
(
00:07
+0000)
"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).
cde/programs/dtcm/dtcm/misc.c
patch
|
blob
|
history
diff --git
a/cde/programs/dtcm/dtcm/misc.c
b/cde/programs/dtcm/dtcm/misc.c
index 118ad3d12bee65e0b2d497601ee160d6d2a091f8..1b8b18a8e071e516146736a71d2d1dffaf06c450 100644
(file)
--- a/
cde/programs/dtcm/dtcm/misc.c
+++ b/
cde/programs/dtcm/dtcm/misc.c
@@
-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;