Initialize struct variables

clang static analyzer was emitting some warning about uninitialized
variable usage and this patch fixes it.
This commit is contained in:
Chocobo1
2020-03-27 15:32:05 +08:00
parent 2408ce98e6
commit af430d6635

View File

@@ -64,10 +64,10 @@ namespace
struct DataFieldDescriptor struct DataFieldDescriptor
{ {
DataType fieldType; DataType fieldType {DataType::Unknown};
union union
{ {
quint32 fieldSize; quint32 fieldSize = 0;
quint32 offset; // Pointer quint32 offset; // Pointer
}; };
}; };