Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit 782a239

Browse files
committed
Presetting variable next_state with defined value so as to not leave it undefined
1 parent 7676992 commit 782a239

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ArduinoCloudThing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ void ArduinoCloudThing::decode(uint8_t const * const payload, size_t const lengt
123123
_currentPropertyName = "";
124124

125125
MapParserState current_state = MapParserState::EnterMap,
126-
next_state;
126+
next_state = MapParserState::Error;
127127

128128
while (current_state != MapParserState::Complete) {
129129

0 commit comments

Comments
 (0)