Browse Source

Fix null pointer dereference

pull/5/head
Raphael Assenat 6 years ago
parent
commit
019301b7b2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      main.c

+ 1
- 1
main.c View File

@ -321,7 +321,7 @@ int main(void)
/* Try to auto-detect controller if none*/
if (!pad) {
pad = detectPad();
if (pad->hotplug) {
if (pad && (pad->hotplug)) {
// For gamecube, this make sure the next
// analog values we read become the center
// reference.


Loading…
Cancel
Save