[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH] report "Bad inittab entry: " for empty line
From:       Denis Vlasenko <vda.linux () googlemail ! com>
Date:       2008-01-29 9:55:23
Message-ID: 200801290955.23650.vda.linux () googlemail ! com
[Download RAW message or body]

On Friday 11 January 2008 08:07, 温曙光 wrote:
> hello:
>     when i boot, many "bad inittab entry" was printed.
>     i saw it's a simple problem.
> 
> endo@endo-lab:/usr/src/busybox$ svn diff
> Index: init/init.c
> ===================================================================
> --- init/init.c (revision 20841)
> +++ init/init.c (working copy)
> @@ -757,7 +757,7 @@
>                 /* Skip leading spaces */
>                 id = skip_whitespace(buf);
>                 /* Skip the line if it's a comment */
> -               if (*id == '#' || *id == '\n')
> +               if (*id == '#' || *id == '\n' || (*id == '\0'))
>                         continue;
>                 /* Trim the trailing '\n' */
>                 *strchrnul(id, '\n') = '\0';
> 

Applied, thanks!
--
vda
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic