commit | 42cc341fd28b0964034e934d39fa629cd23804ad | [log] [tgz] |
---|---|---|
author | xypron.glpk@gmx.de <xypron.glpk@gmx.de> | Wed May 03 23:20:10 2017 +0200 |
committer | Tom Rini <trini@konsulko.com> | Fri May 05 16:45:57 2017 -0400 |
tree | a7096fcd96ac176998753945e9fd73ac93ae9be3 | |
parent | 3eac974fc77954810be3ab0540adfcb088399bb4 [diff] |
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>