commit | 05d887b4619e54a2b7d487ac1c31b4544ce58533 | [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 | 1275a44e2f0579aba11d59c92c1717d5f9abc5e9 [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>