Browse Source

[5101] Initialized ctx_ (CID 1398351 and 1398349)

Francis Dupont 8 years ago
parent
commit
78f22678d4
2 changed files with 4 additions and 4 deletions
  1. 2 2
      src/bin/dhcp4/parser_context.cc
  2. 2 2
      src/bin/dhcp6/parser_context.cc

+ 2 - 2
src/bin/dhcp4/parser_context.cc

@@ -1,4 +1,4 @@
-// Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2016-2017 Internet Systems Consortium, Inc. ("ISC")
 //
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -16,7 +16,7 @@ namespace isc {
 namespace dhcp {
 namespace dhcp {
 
 
 Parser4Context::Parser4Context()
 Parser4Context::Parser4Context()
-  : trace_scanning_(false), trace_parsing_(false)
+  : trace_scanning_(false), trace_parsing_(false), ctx_(NO_KEYWORD)
 {
 {
 }
 }
 
 

+ 2 - 2
src/bin/dhcp6/parser_context.cc

@@ -1,4 +1,4 @@
-// Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2016-2017 Internet Systems Consortium, Inc. ("ISC")
 //
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -16,7 +16,7 @@ namespace isc {
 namespace dhcp {
 namespace dhcp {
 
 
 Parser6Context::Parser6Context()
 Parser6Context::Parser6Context()
-  : trace_scanning_(false), trace_parsing_(false)
+  : trace_scanning_(false), trace_parsing_(false), ctx_(NO_KEYWORD)
 {
 {
 }
 }