diff options
-rw-r--r-- | debug.c | 2 | ||||
-rw-r--r-- | inittab.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -29,7 +29,7 @@ void debug_init(void) regex_t pat_cmdline; regmatch_t matches[2]; - if (!fd) + if (fd < 0) return; r = read(fd, line, sizeof(line) - 1); @@ -139,7 +139,7 @@ static void askconsole(struct init_action *a) regex_t pat_cmdline; regmatch_t matches[2]; - if (!fd) + if (fd < 0) return; r = read(fd, line, sizeof(line) - 1); |