Browse Source

Initialize struct variables

clang static analyzer was emitting some warning about uninitialized
variable usage and this patch fixes it.
adaptive-webui-19844
Chocobo1 5 years ago
parent
commit
af430d6635
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 4
      src/base/net/private/geoipdatabase.cpp

4
src/base/net/private/geoipdatabase.cpp

@ -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
}; };
}; };

Loading…
Cancel
Save