Graph definition is made of successive SVG "path" commands concatenated
together. Make sure that the strings allocated to receive these definitions
are initialized before being used.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
exit(4);
}
*(out + i) = out_p;
+ *out_p = '\0'; /* Reset string so that it can be safely strncat()'d later */
*(*outsize + i) = CHUNKSIZE; /* Each array of chars has a default size of CHUNKSIZE */
- *(*spmin + i) = DBL_MAX;
+ *(*spmin + i) = DBL_MAX; /* Init min and max values */
*(*spmax + i) = -DBL_MAX;
}