diff options
| author | Stephen Hines <srhines@google.com> | 2019-05-02 12:54:09 -0700 |
|---|---|---|
| committer | Stephen Hines <srhines@google.com> | 2019-05-02 12:54:09 -0700 |
| commit | cad1fa19316fc80cf2bd0d90202b19bdaa079555 (patch) | |
| tree | aeb00b038d41bea65a10a6db699637e7ffcf1d01 /libsparse/sparse.cpp | |
| parent | 83a6d908b9724eeebd1d932370ec4d4e28f23aa2 (diff) | |
Fix an unintialized return value.
Bug: http://b/131390872
Test: Built aosp_blueline successfully.
Change-Id: Iea5255be280dfc089a95fc25a0f988e913c18679
Diffstat (limited to 'libsparse/sparse.cpp')
| -rw-r--r-- | libsparse/sparse.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsparse/sparse.cpp b/libsparse/sparse.cpp index cb288c5556..24c6379cd7 100644 --- a/libsparse/sparse.cpp +++ b/libsparse/sparse.cpp @@ -188,7 +188,7 @@ int sparse_file_foreach_chunk(struct sparse_file* s, bool sparse, bool crc, int (*write)(void* priv, const void* data, size_t len, unsigned int block, unsigned int nr_blocks), void* priv) { - int ret; + int ret = 0; int chunks; struct chunk_data chk; struct output_file* out; |
