1 Fixes segfault on startup under certain conditions
7 /* Skip over "tty" in the id if old entry did too. */
8 - if (strncmp(line, "tty", 3) == 0) {
9 + if (old != NULL && strncmp(line, "tty", 3) == 0) {
10 idlen = MIN(sizeof(old->ut_id), 3);
11 if (strncmp(old->ut_id, "tty", idlen) != 0)