xfree86: Fix NULL pointer dereference crash

screenp->displays[count] (passed to configDisplay() in
configScreen()) is NULL if there is no Virtual setting
in the configuration.

Fixes: f8a6be04 ("xfree86: Change
displays array to pointers array to fix invalid pointer issues
after table reallocation")

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
5 jobs for fix-crash-if-no-virtual in 6 minutes and 17 seconds (queued for 8 seconds)
latest
Status Job ID Name Coverage
  Docker Image
passed debian-buster #11091040

00:00:20

 
  Build And Test
passed autotools #11091041

00:05:57

passed meson #11091042

00:02:34

passed meson-noglamor #11091043

00:01:23

passed mingw-cross-build #11091044

00:00:42