summaryrefslogtreecommitdiffstats
path: root/core/load-git.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-07-25 07:25:54 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-08-04 16:22:19 -0700
commitba4d6ae62707d20fef8d33ceab3f2de5be3e9ae7 (patch)
tree9a735267330238ffd0b7a551a160db9aa3b045ca /core/load-git.c
parent891d21b34eda04a362e0a6645a8dd8d2f8995837 (diff)
downloadsubsurface-ba4d6ae62707d20fef8d33ceab3f2de5be3e9ae7.tar.gz
Cleanup: use clear_git_id() instead of setting saved_git_id
For better encapsulation, use clear_git_id() in clear_dive_file_data() instead of setting saved_git_id directly. Thus, memory management of the saved_git_id value is encapsulated and can be modified more easily. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/load-git.c')
-rw-r--r--core/load-git.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/load-git.c b/core/load-git.c
index 0915a459e..2ff96ef0b 100644
--- a/core/load-git.c
+++ b/core/load-git.c
@@ -1625,7 +1625,7 @@ void clear_git_id(void)
saved_git_id = NULL;
}
-void set_git_id(const struct git_oid * id)
+void set_git_id(const struct git_oid *id)
{
static char git_id_buffer[GIT_OID_HEXSZ + 1];