The only caller, vnc_jobs_join() cannot take vs == NULL argument, or it would later crash.
Signed-off-by: Marc-André Lureau <[email protected]> --- ui/vnc-jobs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/vnc-jobs.c b/ui/vnc-jobs.c index 4dd7ccad969..8cb30e72276 100644 --- a/ui/vnc-jobs.c +++ b/ui/vnc-jobs.c @@ -138,7 +138,7 @@ static bool vnc_has_job_locked(VncState *vs) VncJob *job; QTAILQ_FOREACH(job, &queue->jobs, next) { - if (job->vs == vs || !vs) { + if (job->vs == vs) { return true; } } -- 2.53.0
