diff options
author | Giovanni Panozzo <giovanni@panozzo.it> | 2022-05-24 16:42:50 +0300 |
---|---|---|
committer | Giovanni Panozzo <giovanni@panozzo.it> | 2022-05-24 16:42:50 +0300 |
commit | 69d62276a37c4f6b539cdcd9c382ed6430f68ff1 (patch) | |
tree | 8e681edae3442a9703a2ea385f0f578426e256ab /plugins | |
parent | 036efd0118fbe393d29580103a27f1f31d058cf3 (diff) |
Fix crash during connection
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/rdp/rdp_plugin.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/rdp/rdp_plugin.c b/plugins/rdp/rdp_plugin.c index efe1a4ab8..d40cfb7a2 100644 --- a/plugins/rdp/rdp_plugin.c +++ b/plugins/rdp/rdp_plugin.c @@ -1906,12 +1906,14 @@ static gboolean remmina_rdp_main(RemminaProtocolWidget *gp) cs = remmina_plugin_service->file_get_string(remminafile, "sharefolder"); if (cs != NULL && cs[0] != '\0') { - REMMINA_PLUGIN_DEBUG("[Deprecated->migrating] - Old sharefolder %s to \"drive \"", cs); + gchar *ccs = g_strdup(cs); + REMMINA_PLUGIN_DEBUG("[Deprecated->migrating] - Old sharefolder %s to \"drive \"", ccs); if (!remmina_plugin_service->file_get_string(remminafile, "drive")) { - remmina_plugin_service->file_set_string(remminafile, "drive", g_strdup(cs)); + remmina_plugin_service->file_set_string(remminafile, "drive", g_strdup(ccs)); remmina_plugin_service->file_set_string(remminafile, "sharefolder", NULL); - REMMINA_PLUGIN_DEBUG("[Deprecated->migrated] - drive set to %s", g_strdup(cs)); + REMMINA_PLUGIN_DEBUG("[Deprecated->migrated] - drive set to %s", g_strdup(ccs)); } + g_free(ccs); //CLPARAM **p; //size_t count; //p = remmina_rdp_CommandLineParseCommaSeparatedValuesEx("drive", g_strdup(cs), &count); |