aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTeddy Wing2018-09-18 13:07:43 +0200
committerTeddy Wing2018-09-18 13:07:43 +0200
commit0bb1ce741dad346d98e041986fa786a75c6c4836 (patch)
treecaea5a32cd04844010a1483b058e04d2a889ffb7 /lib
parentc01786e8672fff0448f1efedeeb6fc781a605384 (diff)
downloadDomeKey-0bb1ce741dad346d98e041986fa786a75c6c4836.tar.bz2
HeadphoneKey(runAction): Fix EXC_BAD_ACCESS on undefined map
If no map was defined for a headphone button, the fields in the `CKeyActionResult` `result` would be null pointers, causing the bad access exception. Before doing anything, check that the pointer points to something real. Also, fix the `kind` check to use the `ActionKind_Map` enum now that the `dome-key-map` library has been updated with the new definition of `CKeyActionResult`.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions