Code

initialize font to empty string for deault font case.
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 26 Jul 2005 09:13:36 +0000 (09:13 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 26 Jul 2005 09:13:36 +0000 (09:13 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@665 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/src/rrd_graph.c

index 6e0e55c913cd91a2bb65d4fcc5d2d5ec0d356b76..bb31289e3df9a07415c97d090fe1d5cb9be870f6 100644 (file)
@@ -3182,7 +3182,7 @@ rrd_graph_options(int argc, char *argv[],image_desc_t *im)
         case 'n':{
            char prop[15];
            double size = 1;
-           char font[1024];
+           char font[1024] = "";
 
            if(sscanf(optarg,
                                "%10[A-Z]:%lf:%1000s",