OSDN Git Service

Initialize variables defined at "diff.h" (#1360)
authorstonee-K <105475799+stonee-K@users.noreply.github.com>
Mon, 6 Jun 2022 12:24:22 +0000 (21:24 +0900)
committerGitHub <noreply@github.com>
Mon, 6 Jun 2022 12:24:22 +0000 (21:24 +0900)
Src/CompareOptions.cpp

index 4819057..a4c98bf 100644 (file)
@@ -193,6 +193,16 @@ void DiffutilsOptions::SetToDiffUtils()
        horizon_lines = 0;
        heuristic = 1;
        recursive = 0;
+
+       no_diff_means_no_output = 0;
+       no_details_flag = 0;
+       line_end_char = '\n';
+       tab_align_flag = 0;
+       tab_expand_flag = 0;
+       paginate_flag = 0;
+       switch_string = NULL;
+       file_label[0] = NULL;
+       file_label[1] = NULL;
 }
 
 /**