--- gnuplot-3.8k.1/src/term.c.orig	2004-03-24 00:06:23.000000000 -0800
+++ gnuplot-3.8k.1/src/term.c	2004-03-24 00:06:30.000000000 -0800
@@ -1437,7 +1437,7 @@
 	if (X11_Display)
 	  term_name = "x11";
 	/* if x11 was selected check for driver */
-	if ((strcmp(term_name, "x11") == 0) && !x11driver_found()) {
+	if (term_name && (strcmp(term_name, "x11") == 0) && !x11driver_found()) {
 	  printf("*** X11-output-driver not found, switching to dumb terminal!\n");
 	  printf("*** If you want to use the X-output, please install the ""gnuplot-x11""-package\n");
 	  term_name = "dumb";
