Browse Source

bug fix: that value was used uninitialized

Cédric Augonnet 15 years ago
parent
commit
d924344bf6
1 changed files with 1 additions and 1 deletions
  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;
 		active = hooks[hook].active;
 		pthread_mutex_unlock(&progression_hook_mutex);
 		pthread_mutex_unlock(&progression_hook_mutex);
 
 
-		unsigned may_block_hook;
+		unsigned may_block_hook = 1;
 
 
 		if (active)
 		if (active)
 			may_block_hook = hooks[hook].func(hooks[hook].arg);
 			may_block_hook = hooks[hook].func(hooks[hook].arg);