8233386: Initialize NULL fields for unused decorations

Reviewed-by: shade, hseigel, dcubed
This commit is contained in:
Coleen Phillimore 2019-11-01 10:04:49 -04:00
parent dae8d44447
commit 026e83632d

View File

@ -65,6 +65,8 @@ void LogDecorations::create_decorations(const LogDecorators &decorators) {
if (decorators.is_decorator(LogDecorators::full_name##_decorator)) { \
_decoration_offset[LogDecorators::full_name##_decorator] = position; \
position = create_##full_name##_decoration(position) + 1; \
} else { \
_decoration_offset[LogDecorators::full_name##_decorator] = NULL; \
}
DECORATOR_LIST
#undef DECORATOR