mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-06-26 00:29:27 +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 t;
|
||||
|
||||
if (*negative)
|
||||
if (negative)
|
||||
{
|
||||
*negative = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user