diff options
author | David Malcolm <dave_malcolm@src.gnome.org> | 2005-08-23 03:46:44 +0800 |
---|---|---|
committer | David Malcolm <dave_malcolm@src.gnome.org> | 2005-08-23 03:46:44 +0800 |
commit | c88db7d4ce3adc05b8732509f51df20841fa387d (patch) | |
tree | fae0e5e89343432b1ab803af0a30398399db42d1 | |
parent | 05d01f22e9d84c7d1c7d14033f86e27dec588b8d (diff) | |
download | gsoc2013-evolution-c88db7d4ce3adc05b8732509f51df20841fa387d.tar.gz gsoc2013-evolution-c88db7d4ce3adc05b8732509f51df20841fa387d.tar.zst gsoc2013-evolution-c88db7d4ce3adc05b8732509f51df20841fa387d.zip |
e-plugin.c (ep_set_enabled): Fix compiler warning on early bailout
svn path=/trunk/; revision=30204
-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) { |