[dia] [scan-build] Assigned value is garbage or undefined



commit 42617ad1f197fbb9a6adb9ed925cefa19262a1a9
Author: Hans Breuer <hans breuer org>
Date:   Fri Jul 1 14:09:50 2011 +0200

    [scan-build] Assigned value is garbage or undefined
    
    Definitely a logic error. I even wonder how this could ever
    work in my initial tests; maybe the undefined part did help?

 app/load_save.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/load_save.c b/app/load_save.c
index 121e9af..02f6522 100644
--- a/app/load_save.c
+++ b/app/load_save.c
@@ -1160,7 +1160,7 @@ typedef struct {
 static gpointer
 _autosave_in_thread (gpointer data)
 {
-  AutoSaveInfo *asi = (AutoSaveInfo *)asi;
+  AutoSaveInfo *asi = (AutoSaveInfo *)data;
 
   diagram_data_raw_save(asi->clone, asi->filename);
   g_object_unref (asi->clone);



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