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
2b861d75
Commit
2b861d75
authored
Mar 19, 2011
by
nulltoken
Committed by
Vicent Marti
Mar 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add detection of incorrect usage to git__joinpath()
parent
f428ae61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/util.c
+3
-0
No files found.
src/util.c
View file @
2b861d75
...
@@ -223,6 +223,9 @@ void git__joinpath_n(char *buffer_out, int count, ...)
...
@@ -223,6 +223,9 @@ void git__joinpath_n(char *buffer_out, int count, ...)
int
len
;
int
len
;
path
=
va_arg
(
ap
,
const
char
*
);
path
=
va_arg
(
ap
,
const
char
*
);
assert
((
i
==
0
)
||
path
!=
buffer_start
);
if
(
i
>
0
&&
*
path
==
'/'
&&
buffer_out
>
buffer_start
&&
buffer_out
[
-
1
]
==
'/'
)
if
(
i
>
0
&&
*
path
==
'/'
&&
buffer_out
>
buffer_start
&&
buffer_out
[
-
1
]
==
'/'
)
path
++
;
path
++
;
...
...
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