Skip to content

Commit

Permalink
Merge pull request #427 from ivanallen/fix-nonnull
Browse files Browse the repository at this point in the history
fix: error: 'this' pointer is null [-Werror=nonnull]
  • Loading branch information
PFZheng authored Dec 11, 2023
2 parents 59c40e5 + 34423c7 commit f43c6a3
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 f43c6a3

Please sign in to comment.