diff --git a/program/src/rrd_gfx.c b/program/src/rrd_gfx.c
index 38d188ef136bb1096b9076d176ba91466cb2b7af..a71d43a01de5bfe95212b4c435a1383f8ca5f631 100644 (file)
--- a/program/src/rrd_gfx.c
+++ b/program/src/rrd_gfx.c
text_count = mbstowcs(cstr, "Enc-Err", 6);
p = cstr;
#else
- unsigned char *p = text, ch;
+ unsigned char *p = text;
+ unsigned char *cstr;
+ char ch;
if (!p)
return;
#endif
text_count = mbstowcs(cstr, "Enc-Err", 6);
p = cstr;
#else
- unsigned char *p = node->text, ch;
+ const unsigned char *p = node->text;
+ unsigned char ch;
if (!p)
return;
#endif