diff options
author | Michael Dankov <tryagain@navit-project.org> | 2016-07-11 23:47:59 +0300 |
---|---|---|
committer | Michael Dankov <tryagain@navit-project.org> | 2016-07-12 00:01:03 +0300 |
commit | 42b5393baaafbe793674282da716e8ba74d0ccb3 (patch) | |
tree | 17da4de06de877196482112909526d714b5e633b | |
parent | 8ae0f9c7b49f2502c5779b277437d4b9693a8f2f (diff) | |
download | navit-42b5393baaafbe793674282da716e8ba74d0ccb3.tar.gz |
Fix:core:initialize value to suppress valgrind warning
The warning had no actual effect, as final result of the expression was not
depending on uninitialized value being tested in it.
-rw-r--r-- | navit/graphics.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/navit/graphics.c b/navit/graphics.c index 5c6f9e5b3..1813a8c36 100644 --- a/navit/graphics.c +++ b/navit/graphics.c @@ -1718,6 +1718,7 @@ graphics_draw_polyline_as_polygon(struct graphics_priv *gra_priv, struct graphic dbg(lvl_debug,"%d,%d width %d\n",pnt[i].x,pnt[i].y,width[i]); #endif ctx.shape.l=0; + ctx.shape.wi=0; ctx.res=g_alloca(sizeof(struct point)*maxpoints); i=0; draw_init_ctx(&ctx, maxpoints); |