Commit 7e48635d by Carlos Martín Nieto

revparse: initialize 'parsed' in case the user doesn't give a number with the @-notation

parent 8d711074
...@@ -341,7 +341,7 @@ cleanup: ...@@ -341,7 +341,7 @@ cleanup:
static int handle_at_syntax(git_object **out, git_reference **ref, const char *spec, int identifier_len, git_repository* repo, const char *curly_braces_content) static int handle_at_syntax(git_object **out, git_reference **ref, const char *spec, int identifier_len, git_repository* repo, const char *curly_braces_content)
{ {
bool is_numeric; bool is_numeric;
int parsed, error = -1; int parsed = 0, error = -1;
git_buf identifier = GIT_BUF_INIT; git_buf identifier = GIT_BUF_INIT;
git_time_t timestamp; git_time_t timestamp;
......
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