[Xfce4-commits] [apps/xfburn] 02/02: Tiny fix: correctly initialize variable.

noreply at xfce.org noreply at xfce.org
Sun May 24 21:30:55 CEST 2015


This is an automated email from the git hooks/post-receive script.

squisher pushed a commit to branch master
in repository apps/xfburn.

commit 26358b26fb3ec62da3b1c43db94be994abc29f64
Author: David Mohr <david at mcbf.net>
Date:   Sun May 24 13:30:04 2015 -0600

    Tiny fix: correctly initialize variable.
    
    This code path was in practice probably never taken, but it's good to
    fix anyway. Thanks clang!
---
 xfburn/xfburn-blank-dialog.c |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/xfburn/xfburn-blank-dialog.c b/xfburn/xfburn-blank-dialog.c
index c2e699e..64ec8c0 100644
--- a/xfburn/xfburn-blank-dialog.c
+++ b/xfburn/xfburn-blank-dialog.c
@@ -484,9 +484,12 @@ get_selected_mode (XfburnBlankDialogPrivate *priv)
 
   model = gtk_combo_box_get_model (GTK_COMBO_BOX (priv->combo_type));
   ret = gtk_combo_box_get_active_iter (GTK_COMBO_BOX (priv->combo_type), &iter);
-  if (ret)
+  if (ret) {
     gtk_tree_model_get (model, &iter, BLANK_COMBO_MODE_COLUMN, &blank_mode, -1);
-
+  } else {
+    g_warning("No blank mode selected, using default");
+    blank_mode = XFBURN_BLANK_FAST;
+  }
   return blank_mode;
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list