From: oetiker Date: Sat, 28 May 2005 12:52:50 +0000 (+0000) Subject: kill a few warnings X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5c59f8e02c966f320ec3cdb55df1f1ce3b441a39;p=rrdtool.git kill a few warnings git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@601 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_gfx.c b/src/rrd_gfx.c index 66dbc94..336a2df 100644 --- a/src/rrd_gfx.c +++ b/src/rrd_gfx.c @@ -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); diff --git a/src/rrd_update.c b/src/rrd_update.c index 347da82..43c0c13 100644 --- a/src/rrd_update.c +++ b/src/rrd_update.c @@ -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;