From 0c74a5d7fe8c360f85d8e002bfdd90cfe0af3de2 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 7 Oct 2014 11:51:53 +0200 Subject: [PATCH] Revert "lib/portableproplib/prop_object.c: CID 62694 (data race condition)" This reverts commit dc63aed2217e6a8bde13125b5a53c88413830634. --- lib/portableproplib/prop_object.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/portableproplib/prop_object.c b/lib/portableproplib/prop_object.c index 43eab38b..dfa60fe5 100644 --- a/lib/portableproplib/prop_object.c +++ b/lib/portableproplib/prop_object.c @@ -56,8 +56,9 @@ static pthread_mutex_t _prop_refcnt_mtx = PTHREAD_MUTEX_INITIALIZER; void _prop_object_init(struct _prop_object *po, const struct _prop_object_type *pot) { + po->po_type = pot; - _PROP_ATOMIC_INC32(&po->po_refcnt); + po->po_refcnt = 1; } /*