From 260ff50b0ad83b7404416b878e8a97550867875e Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 26 Dec 2017 16:12:45 -0800 Subject: Cleanup: avoid accessing uninitialized variable Coverity CID 208289 Signed-off-by: Dirk Hohndel --- core/save-xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3-70-g09d2