Fix potential NULL-dereference

This commit is contained in:
Aaron Culliney 2013-12-29 11:37:05 -08:00
parent 5d405be27a
commit b50d2c89cf

View File

@ -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;
}