diff --git a/src/kits/tracker/AttributeStream.cpp b/src/kits/tracker/AttributeStream.cpp index c27b0f4edd..51e4ee7869 100644 --- a/src/kits/tracker/AttributeStream.cpp +++ b/src/kits/tracker/AttributeStream.cpp @@ -48,7 +48,15 @@ All rights reserved. // #pragma mark - AttributeInfo +AttributeInfo::AttributeInfo() : + fName("") +{ + fInfo.type = B_RAW_TYPE; + fInfo.size = 0; +} + + AttributeInfo::AttributeInfo(const AttributeInfo& other) : fName(other.fName), @@ -70,8 +78,8 @@ AttributeInfo::AttributeInfo(const char* name, uint32 type, off_t size) : fName(name) { - fInfo.size = size; fInfo.type = type; + fInfo.size = size; } diff --git a/src/kits/tracker/AttributeStream.h b/src/kits/tracker/AttributeStream.h index 8ed76ffe47..7738ee20c3 100644 --- a/src/kits/tracker/AttributeStream.h +++ b/src/kits/tracker/AttributeStream.h @@ -73,8 +73,7 @@ struct AttributeTemplate { class AttributeInfo { // utility class for internal attribute description public: - AttributeInfo() - {} + AttributeInfo(); AttributeInfo(const AttributeInfo& other); AttributeInfo(const char* name, attr_info info); AttributeInfo(const char* name, uint32 type, off_t size);