samstyle / Xpeccy

Multiplatform emulator of retro computers
MIT License
71 stars 13 forks source link

Either the condition '!sdc' is redundant or there is possible null pointer dereference: sdc #103

Closed ZanyXDev closed 3 years ago

ZanyXDev commented 3 years ago

if sdc null pointer then https://github.com/samstyle/Xpeccy/blob/56e66c7335f47df3c215b4856e843434bf2bc8bf/src/libxpeccy/sdcard.c#L38 get error before https://github.com/samstyle/Xpeccy/blob/56e66c7335f47df3c215b4856e843434bf2bc8bf/src/libxpeccy/sdcard.c#L39