fix kconfig.pl split for config symbols that have "0" as value
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 19 Sep 2007 20:55:05 +0000 (20:55 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 19 Sep 2007 20:55:05 +0000 (20:55 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8847 3c298f89-4303-0410-b956-a3cf2f4a3e73

scripts/kconfig.pl

index 53b8f11025f75d2ef2850e7a986db13dcd48cb6c..181b35ad47271b6f90c4af27d39e181941eeae05 100755 (executable)
@@ -72,7 +72,7 @@ sub config_diff($$) {
        my %config;
        
        foreach my $config (keys %$cfg2) {
-               if (!$cfg1->{$config} or $cfg1->{$config} ne $cfg2->{$config}) {
+               if (!defined($cfg1->{$config}) or $cfg1->{$config} ne $cfg2->{$config}) {
                        $config{$config} = $cfg2->{$config};
                }
        }