Kaynağa Gözat

u-a: Remove unused new_choice assignment

Guillem Jover 15 yıl önce
ebeveyn
işleme
cf715ae93a
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      utils/update-alternatives.c

+ 1 - 1
utils/update-alternatives.c

@@ -2459,7 +2459,7 @@ main(int argc, char **argv)
 
 
 		if (current_choice && !alternative_has_choice(a, current_choice)) {
 		if (current_choice && !alternative_has_choice(a, current_choice)) {
 			struct fileset *best = alternative_get_best(a);
 			struct fileset *best = alternative_get_best(a);
-			new_choice = best->master_file;
+
 			warning(_("current alternative %s is unknown, "
 			warning(_("current alternative %s is unknown, "
 			          "switching to %s for link group %s."),
 			          "switching to %s for link group %s."),
 			        current_choice, best->master_file,
 			        current_choice, best->master_file,