Forráskód Böngészése

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 éve
szülő
commit
18f0cefb38
1 módosított fájl, 0 hozzáadás és 2 törlés
  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