Просмотр исходного кода

u-a: Remove unreachable code at the end of alternative_select_choice()

The function contains an infinite loop that does not break out.
Guillem Jover лет назад: 14
Родитель
Сommit
18f0cefb38
1 измененных файлов с 0 добавлено и 2 удалено
  1. 0 2
      utils/update-alternatives.c

+ 0 - 2
utils/update-alternatives.c

@@ -1602,8 +1602,6 @@ alternative_select_choice(struct alternative *a)
 			}
 		}
 	}
-	free(current);
-	return NULL;
 }
 
 static void