diff options
| author | Quentin Young <qlyoung@users.noreply.github.com> | 2018-07-03 17:38:09 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-03 17:38:09 -0400 |
| commit | 4adc8f685251713b272cf1968b08acbb76196f7d (patch) | |
| tree | dbdbcd3f4cccac2f9331e1526f39338ef7f569a6 /lib/workqueue.c | |
| parent | 94adf8d33e5d229282f9eb71b01f8c82abbdd24d (diff) | |
| parent | b575a12c878f5fc0c346204215f648e112f026e0 (diff) | |
Merge pull request #2620 from pacovn/PVS-Studio_null_check_2
bgpd lib ospfd pimd ripngd: null chk (PVS-Studio)
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 |
