Commit 83458bb7 by nulltoken

refs: Fix error clearing

parent 032ba9e4
...@@ -1962,8 +1962,12 @@ int git_reference__is_valid_name( ...@@ -1962,8 +1962,12 @@ int git_reference__is_valid_name(
const char *refname, const char *refname,
unsigned int flags) unsigned int flags)
{ {
int error;
error = git_reference__normalize_name(NULL, refname, flags) == 0;
giterr_clear(); giterr_clear();
return git_reference__normalize_name(NULL, refname, flags) == 0;
return error;
} }
int git_reference_is_valid_name( int git_reference_is_valid_name(
......
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