aboutsummaryrefslogtreecommitdiff
path: root/package/config/conf.c
diff options
context:
space:
mode:
authorGravatar Peter Korsgaard <jacmet@sunsite.dk>2008-06-19 08:11:51 +0000
committerGravatar Peter Korsgaard <jacmet@sunsite.dk>2008-06-19 08:11:51 +0000
commite2c32ba54b2fcf27a766e9c3cb427180a03ea056 (patch)
treed807979670ce4d6961f08ce8f2f9da1cdb57c5aa /package/config/conf.c
parent1b6f2e0f4c8445100f1ea6bea5b89db15dba0175 (diff)
downloadbuildroot-e2c32ba54b2fcf27a766e9c3cb427180a03ea056.tar.gz
buildroot-e2c32ba54b2fcf27a766e9c3cb427180a03ea056.tar.bz2
package/config: rebase from upstream (2.6.24.4)
From Bernhards tree (1af211ea)
Diffstat (limited to 'package/config/conf.c')
-rw-r--r--package/config/conf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/config/conf.c b/package/config/conf.c
index b025d2d66b..d69b0aff42 100644
--- a/package/config/conf.c
+++ b/package/config/conf.c
@@ -374,7 +374,8 @@ static int conf_choice(struct menu *menu)
continue;
break;
case set_random:
- def = (random() % cnt) + 1;
+ if (is_new)
+ def = (random() % cnt) + 1;
case set_default:
case set_yes:
case set_mod: