--- daemons/lircd.c~ 2005-07-10 11:34:12.000000000 +0300 +++ daemons/lircd.c 2005-08-14 19:29:50.000000000 +0300 @@ -1974,7 +1974,7 @@ "no peers are specified\n",progname); return(EXIT_FAILURE); } - if(strcmp(hw.device, lircdfile)==0) + if(hw.device != NULL && strcmp(hw.device, lircdfile)==0) { fprintf(stderr, "%s: refusing to connect to myself\n", progname);