From: Matthias Runge Date: Wed, 8 Jun 2022 14:44:07 +0000 (+0200) Subject: Fix compile of the prometheus plugin X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8dccc1e46d0c7d5d7084137e95688210e6579a4;p=thirdparty%2Fcollectd.git Fix compile of the prometheus plugin --- diff --git a/src/write_prometheus.c b/src/write_prometheus.c index 7596b5551..6e519bc8a 100644 --- a/src/write_prometheus.c +++ b/src/write_prometheus.c @@ -246,8 +246,8 @@ static MHD_RESULT http_handler(void *cls, struct MHD_Connection *connection, * Apparently not everything has been initialized yet or so; the docs are not * very specific on the issue. */ if (*connection_state == NULL) { - /* set to a random non-NULL pointer. */ - *connection_state = &(int){42}; + /* keep track of connection state */ + *connection_state = &"called"; return MHD_YES; }