home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8ff28b
)
Added memory sanitation TODO.
author
Christian Heller
<c.heller@plomlompom.de>
Fri, 30 Aug 2013 00:01:25 +0000
(
02:01
+0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Fri, 30 Aug 2013 00:01:25 +0000
(
02:01
+0200)
src/misc.c
patch
|
blob
|
history
diff --git
a/src/misc.c
b/src/misc.c
index b007dcd24455f1cd630e7212149887425a20d025..4db3bc319c906de93004606ffbda90955e0cdbd5 100644
(file)
--- a/
src/misc.c
+++ b/
src/misc.c
@@
-53,10
+53,10
@@
extern void textfile_sizes(FILE * file, uint16_t * linemax_p,
extern void update_log(struct World * world, char * text)
{
- static char * last_msg;
- if (0 == last_msg)
- {
- last_msg = calloc(1, sizeof(char));
+ static char * last_msg;
/* TODO: valgrind is dissatisfied */
+ if (0 == last_msg)
/* with this calloc'd pointer */
+ {
/* never being freed. */
+ last_msg = calloc(1, sizeof(char));
/* Rectify this ? */
}
char * new_text;
uint16_t len_old = strlen(world->log);