mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-02-23 18:29:11 +00:00
Fix potential NULL-dereference
This commit is contained in:
parent
5d405be27a
commit
b50d2c89cf
@ -46,7 +46,7 @@ static unsigned int g_nCyclesExecuted; // # of cycles executed up to last IO acc
|
|||||||
struct timespec timespec_diff(struct timespec start, struct timespec end, bool *negative) {
|
struct timespec timespec_diff(struct timespec start, struct timespec end, bool *negative) {
|
||||||
struct timespec t;
|
struct timespec t;
|
||||||
|
|
||||||
if (*negative)
|
if (negative)
|
||||||
{
|
{
|
||||||
*negative = false;
|
*negative = false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user