Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
e6cdd17c
Unverified
Commit
e6cdd17c
authored
Jun 25, 2018
by
Patrick Steinhardt
Committed by
GitHub
Jun 25, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4695 from nelhage/git_pkt-type-confusion
Fix type confusion in git_smart__connect
parents
983f72c5
0098d746
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
src/transports/smart.c
+6
-1
No files found.
src/transports/smart.c
View file @
e6cdd17c
...
...
@@ -266,7 +266,12 @@ static int git_smart__connect(
/* We now have loaded the refs. */
t
->
have_refs
=
1
;
first
=
(
git_pkt_ref
*
)
git_vector_get
(
&
t
->
refs
,
0
);
pkt
=
(
git_pkt
*
)
git_vector_get
(
&
t
->
refs
,
0
);
if
(
pkt
&&
GIT_PKT_REF
!=
pkt
->
type
)
{
giterr_set
(
GITERR_NET
,
"invalid response"
);
return
-
1
;
}
first
=
(
git_pkt_ref
*
)
pkt
;
if
((
error
=
git_vector_init
(
&
symrefs
,
1
,
NULL
))
<
0
)
return
error
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment