Skip to content
Commit a2e97405 authored by TaiJu Wu's avatar TaiJu Wu Committed by Alberto Escolar
Browse files

lib: check null pointer before taking lock for bitarray



In some function in bitarray.c, we should check the pointer
of bitarry before taking bitarray lock.

In this patch, we move the null-check assert before the use of
the struct to provide better validation than a crash.

Signed-off-by: default avatarTaiJu Wu <tjwu1217@gmail.com>
parent bfba19dc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment