summaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authormwayne <[email protected]>2019-01-03 11:15:58 +0100
committerJohn Stebbins <[email protected]>2019-01-03 08:29:39 -0700
commitf2075c0522ab11b1a67a65b3bdc4e9ff10d5635a (patch)
tree0d0ab3c124805606563f38becf6913cc71322596 /gtk
parent2a01285a61baf854abd3f4daca66e2e33cdecc9e (diff)
gtk: Fix minor cross compile issue in callbacks
Fix undeclared variable introduced in commit 826d1a7fb862c292195d766f72c51dce120b47bd
Diffstat (limited to 'gtk')
-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 97d08039b..1ca6b66db 100644
--- a/gtk/src/callbacks.c
+++ b/gtk/src/callbacks.c
@@ -4457,12 +4457,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)