diff options
Diffstat (limited to 'core/save-xml.c')
-rw-r--r-- | core/save-xml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/save-xml.c b/core/save-xml.c index fa8ad8961..24bf3d64c 100644 --- a/core/save-xml.c +++ b/core/save-xml.c @@ -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) |