diff options
author | Roland McGrath <roland@gnu.org> | 1995-09-23 05:54:10 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1995-09-23 05:54:10 +0000 |
commit | d7a263f65eba5ac28c98f42f66f9b6e1c88c448a (patch) | |
tree | fcf4720d51692037c09e77055d3a9e003f297acc /boot | |
parent | cd2a2678dec84bd9acea1abcbf637517f37cb51f (diff) |
(boot_script_parse_line): Ignore line beginning with #.
Diffstat (limited to 'boot')
-rw-r--r-- | boot/boot_script.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/boot/boot_script.c b/boot/boot_script.c index 64548d4f..a94b90d2 100644 --- a/boot/boot_script.c +++ b/boot/boot_script.c @@ -269,6 +269,9 @@ boot_script_parse_line (char *cmdline) /* Extract command name. Ignore line if it lacks a command. */ for (p = cmdline; *p == ' ' || *p == '\t'; p++) ; + if (*p == '#') + /* Ignore comment line. */ + return 0; for (q = p; *q && *q != ' ' && *q != '\t' && *q != '\n'; q++) ; if (p == q) |