[gnome-commander] Fix null dereference error



commit db32a8f0db97be298dda527af1d34173062dc746
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Wed Nov 10 22:09:21 2021 +0100

    Fix null dereference error

 src/gnome-cmd-con-device.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gnome-cmd-con-device.cc b/src/gnome-cmd-con-device.cc
index 094ad9e6..37370a58 100644
--- a/src/gnome-cmd-con-device.cc
+++ b/src/gnome-cmd-con-device.cc
@@ -186,7 +186,7 @@ static void mount_finish_callback(GObject *gVol, GAsyncResult *result, gpointer
     {
         set_con_base_path_for_gmount(con, dev_con->priv->gMount);
     }
-    if (!con->base_path)
+    if (con->base_path)
     {
         gnome_cmd_con_set_root_path(con, con->base_path->get_path());
     }


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