Skip to content

Commit

Permalink
fix "error: ‘response’ may be used uninitialized in this function"
Browse files Browse the repository at this point in the history
  • Loading branch information
r00t- committed Mar 14, 2021
1 parent c184e7d commit e90c1e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/local.cpp
Expand Up @@ -134,7 +134,7 @@ int handle_request(void *cls, struct MHD_Connection *connection, const char *url
// mapping between meters and channels
MapContainer *mappings = static_cast<MapContainer *>(cls);

struct MHD_Response *response;
struct MHD_Response *response = NULL;
const char *mode = MHD_lookup_connection_value(connection, MHD_GET_ARGUMENT_KIND, "mode");

try {
Expand Down

0 comments on commit e90c1e7

Please sign in to comment.