1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-24 05:25:37 +00:00

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
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C

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