summaryrefslogtreecommitdiffstats
path: root/core/save-xml.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-26 16:12:45 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-26 16:12:45 -0800
commit260ff50b0ad83b7404416b878e8a97550867875e (patch)
treeefd3f4f79fbaf9eec74f09526f99a01494a6b420 /core/save-xml.c
parent76cb4bc841dc2d0e808aeb7fcf2f37c844a1b26e (diff)
downloadsubsurface-260ff50b0ad83b7404416b878e8a97550867875e.tar.gz
Cleanup: avoid accessing uninitialized variable
Coverity CID 208289 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/save-xml.c')
-rw-r--r--core/save-xml.c2
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)