--- gpm-1.20.1/src/lib/liblow.c	2003-08-19 23:54:47.000000000 -0500
+++ gpm/src/lib/liblow.c	2003-08-19 23:23:07.000000000 -0500
@@ -200,8 +200,6 @@
    Gpm_Stst *new = NULL;
    char* sock_name = 0;
 
-   consolename = NULL;
-
 #if 0   
    gpm_report(GPM_PR_DEBUG,"VC: %d",flag);
 #endif
@@ -260,6 +258,10 @@
             gpm_report(GPM_PR_ERR,"checking tty name failed");
             goto err;
          }   
+         if (consolename == NULL) {
+            gpm_report(GPM_PR_ERR,"option.consolename not set");
+            goto err;
+         }   
          /* do we really need this check ? */
          if(strncmp(tty,consolename,strlen(consolename)-1)
             || !isdigit(tty[strlen(consolename)-1])) {
