A user reported: 'Use of uninitialized value $ENV{"LMC_KEEP"} in split at ./scripts/kconfig/streamline_config.pl line 596.' so first check that $ENV{LMC_KEEP} is defined before trying to use it.
Unified · Split
| @@ -593,7 +593,10 @@ while ($repeat) { · 592 unmodified lines | ||
| 593 | 593 | } |
| 594 | 594 | |
| 595 | 595 | my %setconfigs; |
| 596 | −my @preserved_kconfigs = split(/:/,$ENV{LMC_KEEP}); | |
| 596 | +my @preserved_kconfigs; | |
| 597 | +if (defined($ENV{'LMC_KEEP'})) { | |
| 598 | + @preserved_kconfigs = split(/:/,$ENV{LMC_KEEP}); | |
| 599 | +} | |
| 597 | 600 | |
| 598 | 601 | sub in_preserved_kconfigs { |
| 599 | 602 | my $kconfig = $config2kfile{$_[0]}; |