Explorar o código

bug fix: that value was used uninitialized

Cédric Augonnet %!s(int64=15) %!d(string=hai) anos
pai
achega
d924344bf6
Modificáronse 1 ficheiros con 1 adicións e 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);