blob: c04bcaef749810d1dbc5ac1816dcb91429a38df2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
From ab9435c71d894018c88c8f5ff89f654f2029d3ed Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thomas=20B=C3=A4chler?= <thomas@archlinux.org>
Date: Sat, 1 Mar 2014 20:30:57 +0100
Subject: [PATCH] Fix uninitialized value in VfrCompiler constructor.
---
BaseTools/Source/C/VfrCompile/VfrCompiler.cpp | 1 +
BaseTools/Source/C/VfrCompile/VfrCompiler.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/BaseTools/Source/C/VfrCompile/VfrCompiler.cpp b/BaseTools/Source/C/VfrCompile/VfrCompiler.cpp
index dd34a1b..77b2cab 100644
--- a/BaseTools/Source/C/VfrCompile/VfrCompiler.cpp
+++ b/BaseTools/Source/C/VfrCompile/VfrCompiler.cpp
@@ -371,6 +371,7 @@ CVfrCompiler::CVfrCompiler (
{
mPreProcessCmd = (CHAR8 *) PREPROCESSOR_COMMAND;
mPreProcessOpt = (CHAR8 *) PREPROCESSOR_OPTIONS;
+ SET_RUN_STATUS(STATUS_UNKNOWN);
OptionInitialization(Argc, Argv);
diff --git a/BaseTools/Source/C/VfrCompile/VfrCompiler.h b/BaseTools/Source/C/VfrCompile/VfrCompiler.h
index ea20bbc..1603961 100644
--- a/BaseTools/Source/C/VfrCompile/VfrCompiler.h
+++ b/BaseTools/Source/C/VfrCompile/VfrCompiler.h
@@ -60,6 +60,7 @@ typedef struct {
} OPTIONS;
typedef enum {
+ STATUS_UNKNOWN = 0,
STATUS_INITIALIZED = 1,
STATUS_PREPROCESSED,
STATUS_COMPILEED,
--
1.9.0
|