diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2021-06-04 08:32:54 +0300 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2021-06-04 19:11:18 +0300 |
commit | 773d98714a8e9f18e0b75335735a95dc2b1c278f (patch) | |
tree | c332a1de3b0e927fd53b9d887b2eddbf9ebc24fd /tools | |
parent | 98a4911bab0c7273824b4165e0633228e1cdf66a (diff) |
Explicitly check for pItem == NULL to satisfy Xcode analyzer (#667, #674)
As far as I can tell, the logic above this line does work correctly and
calls `allocate_field()` in any case where iter->pData could point to pointer
to NULL. But the logic depends on PB_SIZE_MAX and other subtle points, which
may be why static analyzers complain. This commit makes it explicitly check
and error out.
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions