Skip to content

Commit 5db1b97

Browse files
committed
Ensure initialisation with relevant default parameters.
1 parent 0dc6c4c commit 5db1b97

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/utility/ota/OTA-nano-rp2040.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,9 @@ int rp2040_connect_onOTARequest(char const * ota_url)
9191
}
9292
#endif
9393

94-
Client* client;
95-
96-
// TODO: eventually parse port in URL
97-
int port;
98-
9994
URI url(ota_url);
95+
Client * client = nullptr;
96+
int port = 0;
10097

10198
if (url.protocol_ == "http") {
10299
client = new WiFiClient();

0 commit comments

Comments
 (0)