summaryrefslogtreecommitdiffstats
path: root/lib/workqueue.c
diff options
context:
space:
mode:
authorF. Aragon <paco@voltanet.io>2018-07-03 15:39:50 +0200
committerF. Aragon <paco@voltanet.io>2018-07-03 15:39:50 +0200
commitb575a12c878f5fc0c346204215f648e112f026e0 (patch)
treeb1de3abe015787064db4ea809ef21aa0b81b9249 /lib/workqueue.c
parentMerge pull request #2475 from LabNConsulting/working/master/no_vrf_socket_4l3... (diff)
downloadfrr-b575a12c878f5fc0c346204215f648e112f026e0.tar.xz
frr-b575a12c878f5fc0c346204215f648e112f026e0.zip
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/workqueue.c b/lib/workqueue.c
index 1af51c06c..39dd142af 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