Explorar el Código

u-a: Remove explicit size from array initializer

Guillem Jover hace 13 años
padre
commit
96a0f9db4a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      utils/update-alternatives.c

+ 1 - 1
utils/update-alternatives.c

@@ -472,7 +472,7 @@ rename_mv(const char *src, const char *dst)
 		return false;
 		return false;
 
 
 	if (rename(src, dst) != 0) {
 	if (rename(src, dst) != 0) {
-		const char *args[3] = { src, dst, NULL };
+		const char *args[] = { src, dst, NULL };
 		int r;
 		int r;
 		r = spawn("mv", args);
 		r = spawn("mv", args);
 		if (WIFEXITED(r) && WEXITSTATUS(r) == 0)
 		if (WIFEXITED(r) && WEXITSTATUS(r) == 0)