Check error value from git_futils_find_template_dir

This commit is contained in:
Linquize 2013-09-20 09:02:58 +08:00
parent 0cd1c3bb06
commit 417472e317

View File

@ -1145,8 +1145,8 @@ static int repo_init_structure(
} }
if (!tdir) { if (!tdir) {
git_futils_find_template_dir(&template_buf); if ((error = git_futils_find_template_dir(&template_buf)) >= 0);
tdir = template_buf.ptr; tdir = template_buf.ptr;
default_template = true; default_template = true;
} }