summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2011-01-18 08:34:14 +0000
committerTom Hacohen <tom@stosb.com>2011-01-18 08:34:14 +0000
commit0ac0816bc248afabffae93531a19ea2b32c2bf28 (patch)
tree181e790efef87b9a95ab81f1e020183bcce59e86
parentf057ba0ded3b5418f983ed60f6b19b5753c698e7 (diff)
Unlock should be run *after* EINA_MAGIC_FAIL otherwise wrong info about the error will be printed, because unlock may modify d.
SVN revision: 56209
-rw-r--r--src/lib/eina_share_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eina_share_common.c b/src/lib/eina_share_common.c
index bacd94a..86fb377 100644
--- a/src/lib/eina_share_common.c
+++ b/src/lib/eina_share_common.c
@@ -111,8 +111,8 @@ static const char EINA_MAGIC_SHARE_HEAD_STR[] = "Eina Share Head";
111 do { \ 111 do { \
112 if (!EINA_MAGIC_CHECK((d), _node_magic)) \ 112 if (!EINA_MAGIC_CHECK((d), _node_magic)) \
113 { \ 113 { \
114 unlock; \
115 EINA_MAGIC_FAIL((d), _node_magic); \ 114 EINA_MAGIC_FAIL((d), _node_magic); \
115 unlock; \
116 } \ 116 } \
117 } while (0) 117 } while (0)
118 118