[balsa/wip/gtk4: 221/351] server: do not free a string constant



commit 1207aa18d739bed846d283338158cd714cb39c8d
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Thu Mar 15 09:41:53 2018 -0400

    server: do not free a string constant

 libbalsa/server.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libbalsa/server.c b/libbalsa/server.c
index ac51f74..36e0685 100644
--- a/libbalsa/server.c
+++ b/libbalsa/server.c
@@ -133,7 +133,7 @@ libbalsa_server_init(LibBalsaServer * server)
 {
     LibBalsaServerPrivate *priv = libbalsa_server_get_instance_private(server);
 
-    priv->protocol        = "pop3"; /* Is this a sane default value? */
+    priv->protocol        = g_strdup("pop3"); /* Is this a sane default value? */
     priv->host            = NULL;
     priv->user            = NULL;
     priv->passwd          = NULL;


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