tags 612683 + patch
thanks

this is a regression from applying the patch for
https://bugzilla.gnome.org/show_bug.cgi?id=673529

attached a revised patch that fixes the issue for me.
From 4a30be17b3adfd7b8383f5c23fae71e31933326b Mon Sep 17 00:00:00 2001
From: Arx Cruz <arxc...@gnome.org>
Date: Tue, 17 Apr 2012 19:50:52 +0000
Subject: Bug #673529 Fix segmentation fault in --list option

---
--- a/src/tree.c
+++ b/src/tree.c
@@ -120,13 +120,13 @@
 
     string = g_string_new (NULL);
 
-    while (channel->is_readable != TRUE)
+    while ((g_io_channel_get_flags(channel) & G_IO_FLAG_IS_READABLE) != G_IO_FLAG_IS_READABLE)
       ;
     do {
       gint status;
 
       do {
-        if (channel->is_readable == TRUE)
+        if (g_io_channel_get_flags(channel) & G_IO_FLAG_IS_READABLE)
           status = g_io_channel_read_line_string (channel, string, NULL, &error);
         else
           return FALSE;
@@ -645,7 +645,7 @@
       zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC);
       break;
   }
-  if (channel->is_readable == TRUE)
+  if (channel != NULL && g_io_channel_get_flags (channel) & G_IO_FLAG_IS_READABLE)
     g_io_channel_shutdown (channel, TRUE, NULL);
 
   gtk_main_quit ();

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to