Просмотр исходного кода

res could return an undefined value if there was no error in
totempg_groups_initialize

Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Angus Salkeld <asalkeld@redhat.com>

Steven Dake 14 лет назад
Родитель
Сommit
8671c967e1
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      exec/totempg.c

+ 1 - 1
exec/totempg.c

@@ -1103,7 +1103,7 @@ int totempg_groups_join (
 {
 {
 	struct totempg_group_instance *instance = (struct totempg_group_instance *)totempg_groups_instance;
 	struct totempg_group_instance *instance = (struct totempg_group_instance *)totempg_groups_instance;
 	struct totempg_group *new_groups;
 	struct totempg_group *new_groups;
-	unsigned int res;
+	unsigned int res = 0;
 
 
 	if (totempg_threaded_mode == 1) {
 	if (totempg_threaded_mode == 1) {
 		pthread_mutex_lock (&totempg_mutex);
 		pthread_mutex_lock (&totempg_mutex);