mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: avoid accessing uninitialized variable
Coverity CID 208289 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
76cb4bc841
commit
260ff50b0a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue