Fixed monitor handle not being NULL on initialization.
This commit is contained in:
@ -78,10 +78,8 @@ MONITOR *mon;
|
|||||||
free(mon);
|
free(mon);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
mon->handle = (*mon->module->startMonitor)(NULL);
|
mon->handle = NULL;
|
||||||
mon->state = MONITOR_STATE_RUNNING;
|
|
||||||
*/
|
|
||||||
|
|
||||||
spinlock_acquire(&monLock);
|
spinlock_acquire(&monLock);
|
||||||
mon->next = allMonitors;
|
mon->next = allMonitors;
|
||||||
|
|||||||
Reference in New Issue
Block a user