gnome-commander r2161 - in trunk: . plugins/cvs



Author: epiotr
Date: Tue Oct  7 17:11:36 2008
New Revision: 2161
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2161&view=rev

Log:
Fixed problem #555288 (build fix)

Modified:
   trunk/ChangeLog
   trunk/plugins/cvs/interface.c

Modified: trunk/plugins/cvs/interface.c
==============================================================================
--- trunk/plugins/cvs/interface.c	(original)
+++ trunk/plugins/cvs/interface.c	Tue Oct  7 17:11:36 2008
@@ -347,11 +347,14 @@
 
 
     fd = popen (cmd, "r");
-    if (fd < 0) return;
-    do {
+    if (fd==0) return;
+
+    do
+    {
         ret = fread (buf, 1, 256, fd);
         gtk_text_buffer_insert_at_cursor (text_buffer, buf, ret);
-    } while (ret == 256);
+    }
+    while (ret == 256);
 
     gtk_text_view_set_buffer (GTK_TEXT_VIEW (text_view), text_buffer);
     pclose (fd);



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