]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix initialization of WebServer::accept_yaml 9716/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 13 Nov 2020 07:41:05 +0000 (08:41 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 13 Nov 2020 07:41:05 +0000 (08:41 +0100)
pdns/webserver.hh

index 9e1f67971ec5048a3830978f1ea928473995c917..2c23d1fe2d0c0151707ccfb8e118fb9bb9615605 100644 (file)
 
 class HttpRequest : public YaHTTP::Request {
 public:
-  HttpRequest(const string& logprefix_="") : YaHTTP::Request(), accept_json(false), accept_html(false), complete(false), logprefix(logprefix_) { };
+  HttpRequest(const string& logprefix_="") : YaHTTP::Request(), logprefix(logprefix_) { };
 
-  bool accept_yaml;
-  bool accept_json;
-  bool accept_html;
-  bool complete;
   string logprefix;
+  bool accept_yaml{false};
+  bool accept_json{false};
+  bool accept_html{false};
+  bool complete{false};
+
   json11::Json json();
 
   // checks password _only_.