summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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 */