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 /e-util/e-plugin.c | |
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
Diffstat (limited to 'e-util/e-plugin.c')
-rw-r--r-- | e-util/e-plugin.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |