Make code path easier for static analyzers
authorJouni Malinen <j@w1.fi>
Sun, 2 Mar 2014 11:37:11 +0000 (13:37 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 2 Mar 2014 15:15:11 +0000 (17:15 +0200)
commitbd27b1360f3dba633bfee19f230226b02d2f0f78
treeac7dc2a157e474d471f69d187e422a938c5ca821
parent2efdbde276f8fdd6444defe91a54da40afca32ae
Make code path easier for static analyzers

record->type == NULL case was handled through the record->type_length
comparison. While this was correct, it is a bit difficult for static
analyzers to understand, so add an extra check for NULL to avoid false
reports on this.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/wps/ndef.c