[virt-tools-list] [PATCH 2/2] Avoid unecessary debug message if returning NULL

Eduardo Lima (Etrunko) etrunko at redhat.com
Thu Jun 23 13:13:25 UTC 2016


Signed-off-by: Eduardo Lima (Etrunko) <etrunko at redhat.com>
---
 src/ovirt-foreign-menu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ovirt-foreign-menu.c b/src/ovirt-foreign-menu.c
index 9b552eb..959804d 100644
--- a/src/ovirt-foreign-menu.c
+++ b/src/ovirt-foreign-menu.c
@@ -465,10 +465,10 @@ GtkWidget *ovirt_foreign_menu_get_gtk_menu(OvirtForeignMenu *foreign_menu)
     GList *it;
     char *current_iso;
 
-    g_debug("Creating GtkMenu for foreign menu");
     if (foreign_menu->priv->iso_names == NULL) {
         return NULL;
     }
+    g_debug("Creating GtkMenu for foreign menu");
     current_iso = ovirt_foreign_menu_get_current_iso_name(foreign_menu);
     gtk_menu = gtk_menu_new();
     for (it = foreign_menu->priv->iso_names; it != NULL; it = it->next) {
-- 
2.5.5




More information about the virt-tools-list mailing list