On Sunday 15 February 2009 02:07, Rob Landley wrote:
> > This is the case when #if is better than if
> > (because #if would work, and if won't):
> 
> Or, alternately, this is a case where the kconfig logic isn't doing what we 
> want, and fixing it is one line:
> 
> Index: scripts/kconfig/confdata.c
> ===================================================================
> --- scripts/kconfig/confdata.c        (revision 25316)
> +++ scripts/kconfig/confdata.c        (working copy)
> @@ -524,6 +524,7 @@
>                               }
>                       case S_INT:
>                               str = sym_get_string_value(sym);
> +                             if (!*str) str="0";
>                               fprintf(out, "CONFIG_%s=%s\n", sym->name, str);
>                               if (out_h) {
>                                       fprintf(out_h, "#define CONFIG_%s 
> %s\n", sym->name, str);

Applied, thanks!
--
vda
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to