mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 20:42:23 +00:00
Check error value from git_futils_find_template_dir
This commit is contained in:
parent
0cd1c3bb06
commit
417472e317
@ -1145,7 +1145,7 @@ static int repo_init_structure(
|
||||
}
|
||||
|
||||
if (!tdir) {
|
||||
git_futils_find_template_dir(&template_buf);
|
||||
if ((error = git_futils_find_template_dir(&template_buf)) >= 0);
|
||||
tdir = template_buf.ptr;
|
||||
default_template = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user