summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormwayne <[email protected]>2019-01-03 11:15:58 +0100
committerJohn Stebbins <[email protected]>2019-02-11 07:34:16 -0700
commit4a360a03ee4eabb1cd5ae1bd629caab5a8ed90e9 (patch)
treeaec2d13295939c91f725930c765b76a8c797e7a3
parentc536ea976130ef09f2781178271c06f6e25cc08b (diff)
gtk: Fix minor cross compile issue in callbacks
Fix undeclared variable introduced in commit 826d1a7fb862c292195d766f72c51dce120b47bd (cherry picked from commit f2075c0522ab11b1a67a65b3bdc4e9ff10d5635a)
-rw-r--r--gtk/src/callbacks.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c
index d2adefe03..a6158cf17 100644
--- a/gtk/src/callbacks.c
+++ b/gtk/src/callbacks.c
@@ -4458,12 +4458,12 @@ ghb_log_cb(GIOChannel *source, GIOCondition cond, gpointer data)
scroll_tok = g_idle_add((GSourceFunc)activity_scroll_to_bottom,
ud);
}
- if (ud->activity_log != NULL)
- {
#if defined(_WIN32)
- gsize one = 1;
- utf8_text[length-1] = '\r';
+ gsize one = 1;
+ utf8_text[length-1] = '\r';
#endif
+ if (ud->activity_log != NULL)
+ {
g_io_channel_write_chars (ud->activity_log, utf8_text,
length, &outlength, NULL);
#if defined(_WIN32)