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=78f9d09a1b73ccc284e73c0f5d503c95f3b312ff;p=rrdtool-all.git kill a few warnings git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@601 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_gfx.c b/program/src/rrd_gfx.c index 66dbc940..336a2dfa 100644 --- a/program/src/rrd_gfx.c +++ b/program/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/program/src/rrd_update.c b/program/src/rrd_update.c index 347da822..43c0c13c 100644 --- a/program/src/rrd_update.c +++ b/program/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;