diff options
-rw-r--r-- | e-util/ChangeLog | 4 | ||||
-rw-r--r-- | e-util/e-plugin.c | 3 |
2 files changed, 6 insertions, 1 deletions
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 <dmalcolm@redhat.com> + + * e-plugin.c (ep_set_enabled): Fix compiler warning on early bailout + 2005-08-18 Tor Lillqvist <tml@novell.com> * 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) { |