summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Ruprecht <cmaiku@gmail.com>2018-11-30 17:30:55 -0600
committerMike Ruprecht <cmaiku@gmail.com>2018-11-30 17:30:55 -0600
commitb644201dc6ffc671ce60e6f4df392f42f0248e06 (patch)
tree498322398af2a732730a14035d0a1f30d7d403e3
parentcb597881956ace7ea1ed440afc05604116ae82ee (diff)
downloadpidgin-b644201dc6ffc671ce60e6f4df392f42f0248e06.tar.gz
pidgin: Fix compiling with -Dconsole-logging=true
With -Dconsole-logging=true, Pidgin would fail to build because a GError variable, which is now used regardless of this option, was declared only when the option was false. This patch moves it so it's declared regardless of the option.
-rw-r--r--pidgin/libpidgin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pidgin/libpidgin.c b/pidgin/libpidgin.c
index 3a9a7f7dac..ccfd85017e 100644
--- a/pidgin/libpidgin.c
+++ b/pidgin/libpidgin.c
@@ -452,9 +452,9 @@ pidgin_setup_error_handler(void)
char errmsg[BUFSIZ];
GIOChannel *signal_channel;
GIOStatus signal_status;
+ GError *error = NULL;
#ifndef DEBUG
char *segfault_message_tmp;
- GError *error = NULL;
/* We translate this here in case the crash breaks gettext. */
segfault_message_tmp = g_strdup_printf(_(