From c88db7d4ce3adc05b8732509f51df20841fa387d Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Mon, 22 Aug 2005 19:46:44 +0000 Subject: e-plugin.c (ep_set_enabled): Fix compiler warning on early bailout svn path=/trunk/; revision=30204 --- e-util/ChangeLog | 4 ++++ e-util/e-plugin.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/e-util/ChangeLog b/e-util/ChangeLog index 91ca6caff7..4b8f6452fc 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,7 @@ +2005-08-18 David Malcolm + + * e-plugin.c (ep_set_enabled): Fix compiler warning on early bailout + 2005-08-18 Tor Lillqvist * e-iconv.c (e_iconv_init): Use g_get_charset() on Win32 to get diff --git a/e-util/e-plugin.c b/e-util/e-plugin.c index 6335695ca4..5cc4ac235d 100644 --- a/e-util/e-plugin.c +++ b/e-util/e-plugin.c @@ -93,7 +93,8 @@ ep_check_enabled(const char *id) static void ep_set_enabled(const char *id, int state) { - if ((state == 0) == ep_check_enabled(id) == 0) + /* Bail out if no change to state, when expressed as a boolean: */ + if ((state == 0) == (ep_check_enabled(id) == 0)) return; if (state) { -- cgit