aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init/init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/init/init.c b/init/init.c
index 513ff340c..9e24817b7 100644
--- a/init/init.c
+++ b/init/init.c
@@ -756,11 +756,11 @@ static void parse_inittab(void)
756 756
757 /* Skip leading spaces */ 757 /* Skip leading spaces */
758 id = skip_whitespace(buf); 758 id = skip_whitespace(buf);
759 /* Skip the line if it's a comment */
760 if (*id == '#' || *id == '\n')
761 continue;
762 /* Trim the trailing '\n' */ 759 /* Trim the trailing '\n' */
763 *strchrnul(id, '\n') = '\0'; 760 *strchrnul(id, '\n') = '\0';
761 /* Skip the line if it is a comment */
762 if (*id == '#' || *id == '\0')
763 continue;
764 764
765 /* Line is: "id:runlevel_ignored:action:command" */ 765 /* Line is: "id:runlevel_ignored:action:command" */
766 runlev = strchr(id, ':'); 766 runlev = strchr(id, ':');