diff --git a/config_parser.c b/config_parser.c index 9175785f..7c12b6a3 100644 --- a/config_parser.c +++ b/config_parser.c @@ -2193,9 +2193,8 @@ void api_pool_profile(struct io_data *io_data, __maybe_unused SOCKETTYPE c, char void update_config_intensity(struct profile *profile) { + char buf[256] = { 0 }; int i; - char buf[255]; - memset(buf, 0, 255); for (i = 0; iintensity) { + if (profile->intensity && profile->intensity != default_profile.intensity) { free(profile->intensity); }