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
6b0510e5
Commit
6b0510e5
authored
Nov 17, 2016
by
Carlos Martín Nieto
Committed by
GitHub
Nov 17, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4009 from pranitbauva1997/fix-string-format
use `giterr_set_str()` wherever possible
parents
a6763ff9
65b78ea3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/index.c
+1
-1
src/zstream.c
+1
-1
No files found.
src/index.c
View file @
6b0510e5
...
...
@@ -552,7 +552,7 @@ int git_index_clear(git_index *index)
static
int
create_index_error
(
int
error
,
const
char
*
msg
)
{
giterr_set
(
GITERR_INDEX
,
msg
);
giterr_set
_str
(
GITERR_INDEX
,
msg
);
return
error
;
}
...
...
src/zstream.c
View file @
6b0510e5
...
...
@@ -21,7 +21,7 @@ static int zstream_seterr(git_zstream *zs)
if
(
zs
->
zerr
==
Z_MEM_ERROR
)
giterr_set_oom
();
else
if
(
zs
->
z
.
msg
)
giterr_set
(
GITERR_ZLIB
,
zs
->
z
.
msg
);
giterr_set
_str
(
GITERR_ZLIB
,
zs
->
z
.
msg
);
else
giterr_set
(
GITERR_ZLIB
,
"Unknown compression 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