[gnome-commander] Fix SEGFAULTS generated by trying to browse Samba shares



commit 6f4fdeb68c41dabf7f3aaf1bd3a83d376ed0da2b
Author: Manuel Bua <manuel bua gmail com>
Date:   Mon Jun 27 21:50:16 2011 +0200

    Fix SEGFAULTS generated by trying to browse Samba shares

 src/gnome-cmd-smb-path.cc |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome-cmd-smb-path.cc b/src/gnome-cmd-smb-path.cc
index a0c38a2..331fbca 100644
--- a/src/gnome-cmd-smb-path.cc
+++ b/src/gnome-cmd-smb-path.cc
@@ -46,7 +46,7 @@ inline void GnomeCmdSmbPath::set_resources(const gchar *workgroup, const gchar *
     else
         this->path = g_strdup (G_DIR_SEPARATOR_S);
 
-    display_path = unix_to_unc (this->path);
+    this->display_path = unix_to_unc (this->path);
 }
 
 
@@ -142,13 +142,13 @@ GnomeCmdPath *GnomeCmdSmbPath::get_parent()
 }
 
 
-GnomeCmdSmbPath::GnomeCmdSmbPath(const gchar *workgroup, const gchar *resource, const gchar *resource_path)
+GnomeCmdSmbPath::GnomeCmdSmbPath(const gchar *workgroup, const gchar *resource, const gchar *resource_path): resource(0), resource_path(0)
 {
     set_resources(workgroup,resource,resource_path);
 }
 
 
-GnomeCmdSmbPath::GnomeCmdSmbPath(const gchar *path_str)
+GnomeCmdSmbPath::GnomeCmdSmbPath(const gchar *path_str): workgroup(0), resource(0), resource_path(0), path(0), display_path(0)
 {
     g_return_if_fail (path_str != NULL);
 



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