]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Fix compile of the prometheus plugin
authorMatthias Runge <mrunge@redhat.com>
Wed, 8 Jun 2022 14:44:07 +0000 (16:44 +0200)
committerMatthias Runge <mrunge@matthias-runge.de>
Wed, 8 Jun 2022 16:50:17 +0000 (18:50 +0200)
src/write_prometheus.c

index 7596b555127c1862c21491ed95158645f74206c1..6e519bc8a4a22e11b332a8d00084da9664c846de 100644 (file)
@@ -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;
   }