Fixes to Coverity defects.

This commit is contained in:
Markus Makela
2015-05-22 05:36:58 +03:00
parent 9f024b5389
commit 9c461450e2
3 changed files with 5 additions and 2 deletions

View File

@ -123,6 +123,8 @@ startMonitor(void *arg,void* opt)
return NULL;
handle->shutdown = 0;
handle->id = MONITOR_DEFAULT_ID;
handle->script = NULL;
handle->master = NULL;
memset(handle->events,false,sizeof(handle->events));
spinlock_init(&handle->lock);
}