[dia] [scan-build] Dead initialization



commit b8686c9c37420f2b75dc76fb3f9f8374a299abd8
Author: Hans Breuer <hans breuer org>
Date:   Tue Dec 29 13:57:05 2009 +0100

    [scan-build] Dead initialization
    
    Value stored to 'clines' during its initialization is never read

 plug-ins/cgm/cgm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/cgm/cgm.c b/plug-ins/cgm/cgm.c
index fdcb240..22b9014 100644
--- a/plug-ins/cgm/cgm.c
+++ b/plug-ins/cgm/cgm.c
@@ -1099,7 +1099,7 @@ draw_image(DiaRenderer *self,
            x2 = x1+width, y2 = y1-height;
     gint rowlen = dia_image_width(image) * 3, lines = dia_image_height(image);
     double linesize = (y1 - y2) / lines;
-    gint chunk, clines = lines;
+    gint chunk, clines;
     guint8 *pImg, *ptr;
 
     if (rowlen > maxlen) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]