about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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.");
x27;integer' to 'number'' href='/akkartik/mu/commit/044space_surround.cc?h=main&id=5497090aa1e708c22cd240913a53dda32bb067aa'>5497090a ^
8f1db754 ^
2f5f7919 ^
8f1db754 ^
2f5f7919 ^
8f1db754 ^
2f5f7919 ^
8f1db754 ^





ac0e9db5 ^

31401373 ^
8f1db754 ^

ac0e9db5 ^
82ac0b7e ^




827898fc ^
ac0e9db5 ^
82ac0b7e ^
8f1db754 ^

ac0e9db5 ^

0487a30e ^
ac0e9db5 ^
0f125d5f ^
0487a30e ^
8f1db754 ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52