fix the memory_info with NULL label

This commit is contained in:
obdev
2023-01-28 18:50:41 +08:00
committed by ob-robot
parent 1a949cec1d
commit 9d32f409bc

View File

@ -104,7 +104,7 @@ struct ObLabel
}
// for format print
operator const char*() const;
bool is_valid() const { return nullptr != str_; }
bool is_valid() const { return nullptr != str_ && '\0' != str_[0]; }
int64_t to_string(char *buf, const int64_t buf_len) const;
const char *str_;
};