diff options
| author | F. Aragon <paco@voltanet.io> | 2018-07-03 15:39:50 +0200 | 
|---|---|---|
| committer | F. Aragon <paco@voltanet.io> | 2018-07-03 15:39:50 +0200 | 
| commit | b575a12c878f5fc0c346204215f648e112f026e0 (patch) | |
| tree | b1de3abe015787064db4ea809ef21aa0b81b9249 /lib/workqueue.c | |
| parent | 8d6d6b2581be7c60ab4913df1adf46098a3dc4ae (diff) | |
bgpd lib ospfd pimd ripngd: null chk (PVS-Studio)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'lib/workqueue.c')
| -rw-r--r-- | lib/workqueue.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/workqueue.c b/lib/workqueue.c index 1af51c06c1..39dd142afb 100644 --- a/lib/workqueue.c +++ b/lib/workqueue.c @@ -245,10 +245,11 @@ int work_queue_run(struct thread *thread)  	char yielded = 0;  	wq = THREAD_ARG(thread); -	wq->thread = NULL;  	assert(wq); +	wq->thread = NULL; +  	/* calculate cycle granularity:  	 * list iteration == 1 run  	 * listnode processing == 1 cycle  | 
