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 | Merge pull request #2475 from LabNConsulting/working/master/no_vrf_socket_4l3... (diff) | |
download | frr-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.c | 3 |
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 |