ソースを参照

totemconfig: Initialize warnings variable

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Jan Friesse 6 年 前
コミット
a24cbad590
1 ファイル変更1 行追加1 行削除
  1. 1 1
      exec/totemconfig.c

+ 1 - 1
exec/totemconfig.c

@@ -2274,7 +2274,7 @@ static void totem_reload_notify(
 {
 	struct totem_config *totem_config = (struct totem_config *)user_data;
 	const char *error_string;
-	uint64_t warnings;
+	uint64_t warnings = 0;
 
 	/* Reload has completed */
 	if (*(uint8_t *)new_val.data == 0) {