analyzer icon indicating copy to clipboard operation
analyzer copied to clipboard

Fix NULL pointer dereference error for NULL mutexattr

Open sim642 opened this issue 1 year ago • 0 comments

Previously

pthread_mutex_init(&mut, NULL);

resulted in a must dereference NULL pointer error because the pointer was always dereferenced.

However, NULL is valid for default attributes, so this avoids the spurious error.

sim642 avatar Apr 05 '24 10:04 sim642