Commit ce4dd5a1 authored by David Renshaw's avatar David Renshaw

initialize anonymous enums in isPlausiblyText() and isPlausiblyJson()

parent 12d346b2
......@@ -1377,7 +1377,7 @@ private:
}
Plausibility isPlausiblyText(kj::ArrayPtr<const byte> prefix) {
enum { PREAMBLE, COMMENT, BODY } state;
enum { PREAMBLE, COMMENT, BODY } state = PREAMBLE;
for (char c: prefix.asChars()) {
switch (state) {
......@@ -1427,7 +1427,7 @@ private:
}
Plausibility isPlausiblyJson(kj::ArrayPtr<const byte> prefix) {
enum { PREAMBLE, COMMENT, BODY } state;
enum { PREAMBLE, COMMENT, BODY } state = PREAMBLE;
for (char c: prefix.asChars()) {
switch (state) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment