lib/portableproplib/prop_object.c: CID 62694 (data race condition)
This commit is contained in:
		@@ -56,9 +56,8 @@ static pthread_mutex_t _prop_refcnt_mtx = PTHREAD_MUTEX_INITIALIZER;
 | 
				
			|||||||
void
 | 
					void
 | 
				
			||||||
_prop_object_init(struct _prop_object *po, const struct _prop_object_type *pot)
 | 
					_prop_object_init(struct _prop_object *po, const struct _prop_object_type *pot)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					 | 
				
			||||||
	po->po_type = pot;
 | 
						po->po_type = pot;
 | 
				
			||||||
	po->po_refcnt = 1;
 | 
						_PROP_ATOMIC_INC32(&po->po_refcnt);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user