]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: activity: always initialize the profiling variable
authorWilly Tarreau <w@1wt.eu>
Thu, 25 Apr 2019 06:55:47 +0000 (08:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 25 Apr 2019 15:26:19 +0000 (17:26 +0200)
It happens it was only set if present in the configuration. It's
harmless anyway but can still cause doubts when comparing logs and
configurations so better correctly initialize it.

This should be backported to 1.9.

src/activity.c

index b5fac884176ebc5ee12bbd79f6b4514aaf438718..b48f4b43b20748b0c6ecc0312fd1ff5bbf5e3ee5 100644 (file)
@@ -23,7 +23,7 @@
 
 
 /* bit field of profiling options. Beware, may be modified at runtime! */
-unsigned int profiling;
+unsigned int profiling = 0;
 
 /* One struct per thread containing all collected measurements */
 struct activity activity[MAX_THREADS] __attribute__((aligned(64))) = { };