diff options
author | Qiu Shumin <shumin.qiu@intel.com> | 2015-12-18 05:59:10 +0000 |
---|---|---|
committer | shenshushi <shenshushi@Edk2> | 2015-12-18 05:59:10 +0000 |
commit | fbaab7153423c7e42c2638ac4dabad1ac4166e1e (patch) | |
tree | 8dcc8be64c4d7e250f259b434b3d1321bc051c64 /MdeModulePkg | |
parent | f63430abd3f90d23642bb17bfb680a3b7528e17b (diff) | |
download | edk2-fbaab7153423c7e42c2638ac4dabad1ac4166e1e.tar.gz edk2-fbaab7153423c7e42c2638ac4dabad1ac4166e1e.tar.bz2 edk2-fbaab7153423c7e42c2638ac4dabad1ac4166e1e.zip |
MdeModulePkg: Fix VS2012 build failure.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19365 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/regcomp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/regcomp.c b/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/regcomp.c index 088450f1e4..ea63b09d0c 100644 --- a/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/regcomp.c +++ b/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/regcomp.c @@ -1211,6 +1211,9 @@ compile_length_enclose_node(EncloseNode* node, regex_t* reg) {
int len;
int tlen;
+ QtfrNode* qn;
+
+ qn = NULL;
if (node->type == ENCLOSE_OPTION)
return compile_length_option_node(node, reg);
@@ -1253,7 +1256,7 @@ compile_length_enclose_node(EncloseNode* node, regex_t* reg) if (node->target == NULL) {
CHECK_NULL_RETURN_MEMERR(node->target);
}
- QtfrNode* qn = NQTFR(node->target);
+ qn = NQTFR(node->target);
tlen = compile_length_tree(qn->target, reg);
if (tlen < 0) return tlen;
|