diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/file.c b/core/file.c index 301a16e0b..abee7c793 100644 --- a/core/file.c +++ b/core/file.c @@ -264,7 +264,7 @@ int check_git_sha(const char *filename, struct git_repository **git_p, const cha struct git_repository *git; const char *branch = NULL; - char *current_sha = strdup(saved_git_id); + char *current_sha = copy_string(saved_git_id); git = is_git_repository(filename, &branch, NULL, false); if (git_p) *git_p = git; |