svn commit: trunk/busybox/scripts/kconfig

vda at busybox.net vda at busybox.net
Sun Feb 15 12:01:15 UTC 2009


Author: vda
Date: 2009-02-15 12:01:14 +0000 (Sun, 15 Feb 2009)
New Revision: 25340

Log:
Make "shadowed" numeric config entries (ones which depend on
other options which are off) to have the value of 0, not "".



Modified:
   trunk/busybox/scripts/kconfig/confdata.c


Changeset:
Modified: trunk/busybox/scripts/kconfig/confdata.c
===================================================================
--- trunk/busybox/scripts/kconfig/confdata.c	2009-02-15 05:51:19 UTC (rev 25339)
+++ trunk/busybox/scripts/kconfig/confdata.c	2009-02-15 12:01:14 UTC (rev 25340)
@@ -524,6 +524,8 @@
 				}
 			case S_INT:
 				str = sym_get_string_value(sym);
+				if (!str[0])
+					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);



More information about the busybox-cvs mailing list