[gnome-commander] Do not escape and unescape the mountpont path
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Do not escape and unescape the mountpont path
- Date: Sun, 20 Jun 2021 21:58:01 +0000 (UTC)
commit cc2ab58dce2d9ac172dfb934b1155dd03fbc6fc3
Author: Uwe Scholz <u scholz83 gmx de>
Date: Sun Jun 20 22:17:22 2021 +0200
Do not escape and unescape the mountpont path
src/gnome-cmd-data.cc | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
---
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index be9f00224..968303e9c 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -2050,13 +2050,7 @@ inline gboolean device_mount_point_exists (GnomeCmdConList *list, const gchar *m
GnomeCmdConDevice *device = GNOME_CMD_CON_DEVICE (tmp->data);
if (device && !gnome_cmd_con_device_get_autovol (device))
{
- gchar *mountp = g_strescape (gnome_cmd_con_device_get_mountp (device), nullptr);
- gchar *mountp2= gnome_vfs_unescape_string (mountp, nullptr);
-
- rc = strcmp(mountp2, mountpoint)==0;
-
- g_free (mountp);
- g_free (mountp2);
+ rc = strcmp(gnome_cmd_con_device_get_mountp_string (device), mountpoint) == 0;
if (rc)
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]