[gnome-commander] Removed dangling pointer
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Removed dangling pointer
- Date: Mon, 27 Apr 2015 19:59:55 +0000 (UTC)
commit 5a4806f7e5789a7d29d62550e9128436ffdef00a
Author: Uwe Scholz <uwescholz src gnome org>
Date: Mon Apr 27 21:54:13 2015 +0200
Removed dangling pointer
src/gnome-cmd-con.cc | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome-cmd-con.cc b/src/gnome-cmd-con.cc
index 32ec372..2cfa5fe 100644
--- a/src/gnome-cmd-con.cc
+++ b/src/gnome-cmd-con.cc
@@ -644,7 +644,7 @@ void response_callback (GtkDialog *dialog, int response_id, std::string *passwor
*/
const std::string* GnomeCmdCon::gnome_cmd_con_set_password()
{
- std::string password;
+ std::string *password = NULL;
GtkWidget *table;
GtkWidget *entry;
GtkWidget *label;
@@ -707,11 +707,11 @@ const std::string* GnomeCmdCon::gnome_cmd_con_set_password()
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
- g_signal_connect (dialog, "response", G_CALLBACK (response_callback), &password);
+ g_signal_connect (dialog, "response", G_CALLBACK (response_callback), password);
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
- return &password;
+ return password;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]