about summary refs log tree commit diff stats
path: root/src/otr/otr.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-07-01 17:07:42 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-07-01 17:07:42 +0200
commitb96e25d9c3716a659fc7c475fdf8129cbd4a7839 (patch)
treec57b72d2c567526e920ba10bcfffc5d54a677cbb /src/otr/otr.c
parent9b514ad3d66631e99fb55082f84e931cf0865bc4 (diff)
downloadprofani-tty-b96e25d9c3716a659fc7c475fdf8129cbd4a7839.tar.gz
Fix overlooking variable
Fix mistake where I overlooked some variables in 1224aa414e56a763412ee33c2b8779d4e6cb1608.
Diffstat (limited to 'src/otr/otr.c')
-rw-r--r--src/otr/otr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/otr/otr.c b/src/otr/otr.c
index 38d35afb..04678d04 100644
--- a/src/otr/otr.c
+++ b/src/otr/otr.c
@@ -386,13 +386,13 @@ otr_keygen(ProfAccount *account)
     if (!mkdir_recursive(otr_dir)) {
         log_error("Could not create %s for account %s.", otr_dir, jid);
         cons_show_error("Could not create %s for account %s.", otr_dir, jid);
-        g_string_free(basedir, TRUE);
+        g_free(otr_dir);
         return;
     }
 
     gcry_error_t err = 0;
 
-    GString *keysfilename = g_string_new(basedir->str);
+    GString *keysfilename = g_string_new(otr_dir);
     g_string_append(keysfilename, "/keys.txt");
     log_debug("Generating private key file %s for %s", keysfilename->str, jid);
     cons_show("Generating private key, this may take some time.");