Code

kill a few warnings
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sat, 28 May 2005 12:52:50 +0000 (12:52 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sat, 28 May 2005 12:52:50 +0000 (12:52 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@601 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_gfx.c
src/rrd_update.c

index 66dbc940322c02cf798364198ef30f986202fa4e..336a2dfa2dd38612e7f621b15b4e365812c0edc5 100644 (file)
@@ -1806,6 +1806,7 @@ int       gfx_render_eps (gfx_canvas_t *canvas,
   state.linecap = -1;
   state.linejoin = -1;
   state.has_dash = 0;
+  state.line_width = 1;
   if (eps_prologue(&state) == -1)
     return -1;
   eps_set_color(&state, background);
index 347da822bf9dc569719a52a196fed5e87edb56a0..43c0c13c078238c8e13b3d09a23c84f39e420cf9 100644 (file)
@@ -252,9 +252,9 @@ _rrd_update(char *filename, char *template, int argc, char **argv,
 
     FILE             *rrd_file;
     rrd_t            rrd;
-    time_t           current_time;
-       time_t           rra_time; /* time of update for a RRA */
-    unsigned long    current_time_usec;  /* microseconds part of current time */
+    time_t           current_time = 0;
+    time_t           rra_time = 0;      /* time of update for a RRA */
+    unsigned long    current_time_usec=0;/* microseconds part of current time */
     struct timeval   tmp_time;           /* used for time conversion */
 
     char             **updvals;