```
src/capabilities.c: In function 'cap_http_handler':
src/capabilities.c:209:23: error: storing the address of local variable '({anonymous})' in '*connection_state' [-Werror=dangling-pointer=]
209 | *connection_state = &(int){44};
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
src/capabilities.c:209:31: note: '({anonymous})' declared here
209 | *connection_state = &(int){44};
| ^
src/capabilities.c:209:31: note: 'connection_state' declared here
```
* round. The docs are not very specific on the issue. */
if (*connection_state == NULL) {
/* set to a random non-NULL pointer. */
- *connection_state = &(int){44};
+ *connection_state = (void *)1;
return MHD_YES;
}
DEBUG(CAP_PLUGIN ": formatted response: %s", g_cap_json);