1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-12-26 09:49:12 +01:00
Files
u-boot-megous/lib/circbuf.c
xypron.glpk@gmx.de 05d887b461 lib: circbuf: avoid possible null pointer dereference
We should not first dereference p and afterwards assert that is
was not NULL. Instead do the assert first.

The problem was indicated by cppcheck.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2017-05-05 16:45:57 -04:00

1.6 KiB