Commit 417472e3 by Linquize

Check error value from git_futils_find_template_dir

parent 0cd1c3bb
......@@ -1145,8 +1145,8 @@ static int repo_init_structure(
}
if (!tdir) {
git_futils_find_template_dir(&template_buf);
tdir = template_buf.ptr;
if ((error = git_futils_find_template_dir(&template_buf)) >= 0);
tdir = template_buf.ptr;
default_template = true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment