mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
[fastmanifest] use 0 initializer to consistently initialize structure
Summary: This guarantees that it's initialized even after we add new fields. Test Plan: make local on linux and darwin Reviewers: lcharignon, wez Reviewed By: wez Subscribers: mitrandir, mjpieters Differential Revision: https://phabricator.intern.facebook.com/D3279949 Signature: t1:3279949:1462843647:0086f23a52ff6992dff8d7df9fd2ff9b1848a30d
This commit is contained in:
parent
e16c150d72
commit
61e1ed96ee
@ -118,9 +118,7 @@ read_from_file_result_t read_from_file(char *fname, size_t fname_sz) {
|
||||
memcpy(fname_dst, fname, fname_sz);
|
||||
fname_dst[fname_sz] = '\x00';
|
||||
|
||||
read_from_file_result_t result;
|
||||
result.err = 0;
|
||||
result.tree = NULL;
|
||||
read_from_file_result_t result = { 0 };
|
||||
|
||||
FILE *fh = fopen(fname_dst, "rb");
|
||||
if (fh == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user