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
998f7b3d
Commit
998f7b3d
authored
Mar 07, 2012
by
Russell Belfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issues raised on pull request
This resolves the comments on pull request #590
parent
ae9e29fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
src/errors.c
+1
-1
src/odb.c
+2
-6
No files found.
src/errors.c
View file @
998f7b3d
...
...
@@ -124,7 +124,7 @@ void giterr_set(int error_class, const char *string, ...)
va_list
arglist
;
git_error
*
error
;
const
char
*
oserr
=
(
error_class
==
GITERR_OS
&&
errno
>
0
)
?
strerror
(
errno
)
:
NULL
;
(
error_class
==
GITERR_OS
&&
errno
!=
0
)
?
strerror
(
errno
)
:
NULL
;
error
=
&
GIT_GLOBAL
->
error_t
;
free
(
error
->
message
);
...
...
src/odb.c
View file @
998f7b3d
...
...
@@ -319,12 +319,8 @@ static int add_backend_internal(git_odb *odb, git_odb_backend *backend, int prio
assert
(
odb
&&
backend
);
if
(
backend
->
odb
!=
NULL
&&
backend
->
odb
!=
odb
)
{
/*
* TODO: Not sure how to convert this!
*/
return
git__throw
(
GIT_EBUSY
,
"The backend is already owned by another ODB"
);
}
/* Check if the backend is already owned by another ODB */
assert
(
!
backend
->
odb
||
backend
->
odb
==
odb
);
internal
=
git__malloc
(
sizeof
(
backend_internal
));
GITERR_CHECK_ALLOC
(
internal
);
...
...
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