Cleanup: avoid accessing uninitialized variable

Coverity CID 208289

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-12-26 16:12:45 -08:00
parent 76cb4bc841
commit 260ff50b0a

View file

@ -715,7 +715,7 @@ int save_dives_logic(const char *filename, const bool select_only)
FILE *f;
void *git;
const char *branch, *remote;
int error;
int error = 0;
git = is_git_repository(filename, &branch, &remote, false);
if (git)