Skip to content

Commit

Permalink
fix(HTTP): initialize response buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
becem-gharbi committed Nov 28, 2023
1 parent 5bbf722 commit 1a5d5ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HTTP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace ESPAdmin

String HTTP::get(const String &path)
{
char response[HTTP_MAX_RESPONSE_SIZE];
char response[HTTP_MAX_RESPONSE_SIZE] = "";

String fullPath = "/api/device/" + String(Store::deviceId) + path;

Expand Down Expand Up @@ -61,7 +61,7 @@ namespace ESPAdmin

String HTTP::post(const String &path, const String &content, const String &contentType)
{
char response[HTTP_MAX_RESPONSE_SIZE];
char response[HTTP_MAX_RESPONSE_SIZE] = "";

String fullPath = "/api/device/" + String(Store::deviceId) + path;

Expand Down

0 comments on commit 1a5d5ff

Please sign in to comment.