summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2016-12-04 04:44:10 -0500
committerPatrick Griffis <tingping@tingping.se>2016-12-04 04:44:10 -0500
commite7da3a052d39e7039daeea8d041f4ff5b3226d18 (patch)
tree236f62f431a9b2c93f511a180bb1c29bbbbe5528 /src/common
parentb6426a1e9fb157201878c43c1c82f682beb5904d (diff)
Avoid mixed declaration
Diffstat (limited to 'src/common')
-rw-r--r--src/common/outbound.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/outbound.c b/src/common/outbound.c
index fab0c1a2..20071db3 100644
--- a/src/common/outbound.c
+++ b/src/common/outbound.c
@@ -1720,8 +1720,9 @@ memrchr (const void *block, int c, size_t size)
 static void
 exec_print_line (session *sess, char *data, gssize len, gboolean tochannel)
 {
+	char *valid;
 	exec_handle_colors (data, len);
-	char *valid = text_fixup_invalid_utf8 (data, len, NULL);
+	valid = text_fixup_invalid_utf8 (data, len, NULL);
 	if (tochannel)
 	{
 		/* must turn off auto-completion temporarily */