static analysis: Fixed several complaints from codechecker.

There are still some pending Objective-C specific issues.

Reference issue .
This commit is contained in:
Ryan C. Gordon 2022-03-24 11:00:43 -04:00
parent eadc064e2c
commit 4fe7b2cbd1
No known key found for this signature in database
GPG key ID: FA148B892AB48044
10 changed files with 33 additions and 20 deletions
src/joystick/hidapi

View file

@ -227,7 +227,7 @@ HIDAPI_CleanupDeviceDriver(SDL_HIDAPI_Device *device)
}
/* Disconnect any joysticks */
while (device->num_joysticks) {
while (device->num_joysticks && device->joysticks) {
HIDAPI_JoystickDisconnected(device, device->joysticks[0]);
}