[dia] [scan-build] Dead assignment and increment



commit 6a09b814f02782953d8d563b89e4d2e0f56d7d5b
Author: Hans Breuer <hans breuer org>
Date:   Wed Dec 30 18:07:08 2009 +0100

    [scan-build] Dead assignment and increment
    
    Value stored to 'style' is never read

 plug-ins/vdx/vdx-import.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/vdx/vdx-import.c b/plug-ins/vdx/vdx-import.c
index ca9f0c9..161e208 100644
--- a/plug-ins/vdx/vdx-import.c
+++ b/plug-ins/vdx/vdx-import.c
@@ -486,7 +486,6 @@ get_style_child(unsigned int type, unsigned int style, VDXDocument* theDoc)
         /* Terminate on style 0 (default) */
         if (!style) return 0;
         /* Find a parent style to check */
-        style = 0;
         if (type == vdx_types_Fill) style = theSheet.FillStyle;
         else if (type == vdx_types_Line) style = theSheet.LineStyle;
         else style = theSheet.TextStyle;



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