diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2011-05-11 22:41:56 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2011-05-12 19:03:47 -0700 |
commit | 70a7f34dfc4d7ea4f7425b9a7359a08a35752bb0 (patch) | |
tree | 2458ff1e015b8f21856d5f37b6db364ae0dcca0e /src/util.c | |
parent | a898b136729660a33d60b317ccb839f6e0428201 (diff) |
Add extra sanity checking to avoid possible NULL dereferences
menus.c:569:10: warning: Access to field 'func' results in a dereference of a null pointer (loaded from variable 'ActiveItem')
if (ActiveItem->func != F_TITLE && !ActiveItem->state)
^~~~~~~~~~
Found-by: clang static analyzer
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/util.c')
0 files changed, 0 insertions, 0 deletions