--- mailnotify.c.orig Thu Mar 27 14:06:57 2003 +++ mailnotify.c Thu Mar 27 14:08:02 2003 @@ -489,7 +489,7 @@ incoming_folder = (gchar *)getenv("MAIL"); - if (strlen(incoming_folder) < 1) + if (incoming_folder == NULL || strlen(incoming_folder) < 1) { if((pw = getpwuid(geteuid())) == NULL) {