chiark / gitweb /
bootchart: add assert
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Wed, 18 Jun 2014 21:35:01 +0000 (23:35 +0200)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Wed, 18 Jun 2014 22:18:05 +0000 (00:18 +0200)
commit8271bd16ce9327834d8580e55bb5e4e0896fd98a
tree478521bfc81baee476485af6c1b25f724a745a16
parenta035f8191addc9422cbe84bf984adcd43134a0db
bootchart: add assert

since 376cd3b89c62f580a6f576cecfbbb28d3944118f LIST_FIND_TAIL accepts
an empty list. That removed an assert in LIST_FIND_TAIL and we now
theoretically risk a null pointer deref. This adds the assert directly
to protect against that.
src/bootchart/svg.c