summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/common/text.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/common/text.c b/src/common/text.c
index 5af98073..90e400e2 100644
--- a/src/common/text.c
+++ b/src/common/text.c
@@ -623,14 +623,15 @@ log_open (session *sess)
 
 	if (!log_error && sess->logfd == -1)
 	{
-		char *message;
+		char *filename = log_create_pathname (sess->server->servername, sess->channel, server_get_network (sess->server, FALSE));
+		char *message = g_strdup_printf (_("* Can't open log file(s) for writing. Check the\npermissions on %s"), filename);
 
-		message = g_strdup_printf (_("* Can't open log file(s) for writing. Check the\npermissions on %s"),
-			log_create_pathname (sess->server->servername, sess->channel, server_get_network (sess->server, FALSE)));
+		g_free (filename);
 
 		fe_message (message, FE_MSG_WAIT | FE_MSG_ERROR);
 
 		g_free (message);
+
 		log_error = TRUE;
 	}
 }
viktor@hexchat.org> 2012-07-21 17:09:54 +0200 committer Berke Viktor <bviktor@hexchat.org> 2012-07-21 17:09:54 +0200 Update .gitignore to include all Unix-specific files' href='/git-repos/torxchat.git/commit/.gitignore?h=feature/tor-i2p-dcc&id=9ea3ac9ddd66e7c85c9a066770da5e7a0ed9c598'>9ea3ac9d ^
7613c796 ^
9ea3ac9d ^




98701e3d ^
9ea3ac9d ^




9ea3ac9d ^





7f71933c ^
c494001d ^

9ea3ac9d ^
5fe1ff1b ^
003fa2dc ^
9ea3ac9d ^

a4052aff ^



d318d78b ^
a4052aff ^
9ea3ac9d ^
a4052aff ^



a4052aff ^
4e488d04 ^



a4052aff ^
9b5766c4 ^

6942d2b4 ^

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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67