diff options
author | Michael Zucci <zucchi@src.gnome.org> | 2001-09-28 07:34:33 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-09-28 07:34:33 +0800 |
commit | 7fcdd7c9749e4ce45dea5be5f68a1a89214ca0a6 (patch) | |
tree | 32e07cc4fc7e4e918e6efa8463e322230a797849 /camel/camel-operation.c | |
parent | dcc2eea680e348f5359c50e43860c1155649bf0f (diff) | |
download | gsoc2013-evolution-7fcdd7c9749e4ce45dea5be5f68a1a89214ca0a6.tar.gz gsoc2013-evolution-7fcdd7c9749e4ce45dea5be5f68a1a89214ca0a6.tar.zst gsoc2013-evolution-7fcdd7c9749e4ce45dea5be5f68a1a89214ca0a6.zip |
Minor style change to operation_registered.
svn path=/trunk/; revision=13206
Diffstat (limited to 'camel/camel-operation.c')
-rw-r--r-- | camel/camel-operation.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/camel/camel-operation.c b/camel/camel-operation.c index 95d8fa0f91..1358cc15ab 100644 --- a/camel/camel-operation.c +++ b/camel/camel-operation.c @@ -105,12 +105,10 @@ CamelOperation *camel_operation_registered(void) CamelOperation *cc = NULL; CAMEL_ACTIVE_LOCK(); - if (operation_active != NULL) { - cc = g_hash_table_lookup(operation_active, (void *)pthread_self()); - if (cc) { - g_assert(cc->refcount > 0); - cc->refcount++; - } + if (operation_active != NULL + && (cc = g_hash_table_lookup(operation_active, (void *)pthread_self()))) { + g_assert(cc->refcount > 0); + cc->refcount++; } CAMEL_ACTIVE_UNLOCK(); |