diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2011-06-17 17:08:35 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2011-06-17 17:08:35 -0400 |
commit | a0296ccbdd570b66a36bf4226760aed312d020d4 (patch) | |
tree | 950a42281d637512381f147eccf01d4f05ffc19f /examples/cairoshape.c | |
parent | 26092c20b0936ff669513fbd64537123b99d036e (diff) | |
download | pango-a0296ccbdd570b66a36bf4226760aed312d020d4.tar.gz |
Bug 652841 - Various pieces of dead code found by gcc/clang static analyzer
Diffstat (limited to 'examples/cairoshape.c')
-rw-r--r-- | examples/cairoshape.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/cairoshape.c b/examples/cairoshape.c index f668e92d..d288db14 100644 --- a/examples/cairoshape.c +++ b/examples/cairoshape.c @@ -58,12 +58,12 @@ mini_svg_render (MiniSvg *shape, double x, y; const char *p; char op[2]; - int items, len; + int len; cairo_get_current_point (cr, &x, &y); cairo_translate (cr, x, y); - for (p = shape->path; (items = sscanf (p, "%1s %n", op, &len)), p += len, *p;) + for (p = shape->path; sscanf (p, "%1s %n", op, &len), p += len, *p;) switch (*op) { case 'M': |