[gnome-commander] Fix the setup of member variable uri of GnomeCmdCon object



commit 83c19583f1402e377e312ec65c9412fbd5b137b8
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Sun Sep 26 23:07:38 2021 +0200

    Fix the setup of member variable uri of GnomeCmdCon object

 src/gnome-cmd-con.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gnome-cmd-con.h b/src/gnome-cmd-con.h
index 127e176c..ce91ed07 100644
--- a/src/gnome-cmd-con.h
+++ b/src/gnome-cmd-con.h
@@ -173,7 +173,7 @@ inline void gnome_cmd_con_set_uri (GnomeCmdCon *con, const gchar *uri=NULL)
 {
     g_return_if_fail (GNOME_CMD_IS_CON (con));
     g_free (con->uri);
-    con->uri = (gchar *) uri;
+    con->uri = g_strdup(uri);
 }
 
 inline void gnome_cmd_con_set_uri (GnomeCmdCon *con, const std::string &uri)


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