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
924f61bf
Unverified
Commit
924f61bf
authored
Jan 09, 2019
by
Edward Thomson
Committed by
GitHub
Jan 09, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4928 from lhchavez/fix-warnings
Fix Linux warnings
parents
19bca3d3
8b599528
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
src/apply.c
+1
-1
tests/index/crlf.c
+8
-8
No files found.
src/apply.c
View file @
924f61bf
...
...
@@ -575,7 +575,7 @@ static int apply_deltas(
{
git_strmap
*
removed_paths
;
size_t
i
;
int
error
;
int
error
=
0
;
if
(
git_strmap_alloc
(
&
removed_paths
)
<
0
)
return
-
1
;
...
...
tests/index/crlf.c
View file @
924f61bf
...
...
@@ -29,7 +29,7 @@ void test_index_crlf__cleanup(void)
if
(
expected_fixture
.
size
)
{
cl_fixture_cleanup
(
expected_fixture
.
ptr
);
git_buf_
fre
e
(
&
expected_fixture
);
git_buf_
dispos
e
(
&
expected_fixture
);
}
}
...
...
@@ -164,13 +164,13 @@ static void test_add_index(const char *safecrlf, const char *autocrlf, const cha
cl_git_pass
(
git_path_direach
(
&
reponame
,
0
,
add_and_check_file
,
&
compare_data
));
cl_fixture_cleanup
(
expected_fixture
.
ptr
);
git_buf_
fre
e
(
&
expected_fixture
);
git_buf_
dispos
e
(
&
expected_fixture
);
git_buf_
fre
e
(
&
attrbuf
);
git_buf_
fre
e
(
&
expected_fixture
);
git_buf_
fre
e
(
&
expected_dirname
);
git_buf_
fre
e
(
&
sandboxname
);
git_buf_
fre
e
(
&
reponame
);
git_buf_
dispos
e
(
&
attrbuf
);
git_buf_
dispos
e
(
&
expected_fixture
);
git_buf_
dispos
e
(
&
expected_dirname
);
git_buf_
dispos
e
(
&
sandboxname
);
git_buf_
dispos
e
(
&
reponame
);
}
static
void
set_up_workingdir
(
const
char
*
name
)
...
...
@@ -205,7 +205,7 @@ static void set_up_workingdir(const char *name)
}
git__free
(
basename
);
git_buf_
fre
e
(
&
dest_filename
);
git_buf_
dispos
e
(
&
dest_filename
);
}
git_vector_free_deep
(
&
contents
);
}
...
...
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