projects
/
platform
/
upstream
/
evolution-data-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebf9709
)
Minor style change to operation_registered.
author
Michael Zucci
<zucchi@src.gnome.org>
Thu, 27 Sep 2001 23:34:33 +0000
(23:34 +0000)
committer
Michael Zucci
<zucchi@src.gnome.org>
Thu, 27 Sep 2001 23:34:33 +0000
(23:34 +0000)
camel/camel-operation.c
patch
|
blob
|
history
diff --git
a/camel/camel-operation.c
b/camel/camel-operation.c
index
95d8fa0
..
1358cc1
100644
(file)
--- 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();