[gnome-settings-daemon] wacom: Prevent use of uninitialised variable



commit b4ef292ead2ff433cde48f9d4e87a9053486c9c1
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Oct 4 11:59:43 2013 +0200

    wacom: Prevent use of uninitialised variable

 plugins/wacom/gsd-wacom-button-editor.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-button-editor.c b/plugins/wacom/gsd-wacom-button-editor.c
index e715cea..6197857 100644
--- a/plugins/wacom/gsd-wacom-button-editor.c
+++ b/plugins/wacom/gsd-wacom-button-editor.c
@@ -365,7 +365,10 @@ update_button (GsdWacomButtonEditor *self)
 
           g_strfreev (strv);
         }
-
+      else
+        {
+          current_type = GSD_WACOM_ACTION_TYPE_NONE;
+        }
     }
   else
     {


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