Explorar el Código

bug fix: that value was used uninitialized

Cédric Augonnet hace 15 años
padre
commit
d924344bf6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/core/progress_hook.c

+ 1 - 1
src/core/progress_hook.c

@@ -78,7 +78,7 @@ unsigned execute_registered_progression_hooks(void)
 		active = hooks[hook].active;
 		pthread_mutex_unlock(&progression_hook_mutex);
 
-		unsigned may_block_hook;
+		unsigned may_block_hook = 1;
 
 		if (active)
 			may_block_hook = hooks[hook].func(hooks[hook].arg);