aboutsummaryrefslogtreecommitdiff
path: root/x11-fm/gnome-commander2/files/patch-gnome-cmd-python-plugin.cc
blob: 53489317e20394a70b2c8f511f94421f23609f14 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- ./src/gnome-cmd-python-plugin.cc.orig       2007-09-10 07:38:08.000000000
+0000
+++ ./src/gnome-cmd-python-plugin.cc    2007-09-11 00:29:03.000000000 +0000
@@ -54,6 +54,11 @@
     }

     long dir_size = pathconf(".", _PC_PATH_MAX);
+    if( -1 == dir_size )
+    {
+        g_warning ( "pathconf(.): %s", strerror(errno) );
+       return;
+    }
     gchar *prev_dir = (gchar *) g_malloc (dir_size);

     if (!prev_dir)