Skip to content

Commit

Permalink
fix: error: 'this' pointer is null [-Werror=nonnull]
Browse files Browse the repository at this point in the history
  • Loading branch information
allen committed Dec 8, 2023
1 parent 59c40e5 commit 34423c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/braft/storage.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ class Snapshot : public butil::Status {
virtual int get_file_meta(const std::string& filename,
::google::protobuf::Message* file_meta) {
(void)filename;
file_meta->Clear();
if (file_meta != NULL) {
file_meta->Clear();
}
return 0;
}
};
Expand Down

0 comments on commit 34423c7

Please sign in to comment.