diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2008-06-19 08:11:51 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2008-06-19 08:11:51 +0000 |
commit | e2c32ba54b2fcf27a766e9c3cb427180a03ea056 (patch) | |
tree | d807979670ce4d6961f08ce8f2f9da1cdb57c5aa /package/config/conf.c | |
parent | 1b6f2e0f4c8445100f1ea6bea5b89db15dba0175 (diff) |
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/config/conf.c b/package/config/conf.c index b025d2d66..d69b0aff4 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: |