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
c4c1500a
Unverified
Commit
c4c1500a
authored
Jun 27, 2019
by
Patrick Steinhardt
Committed by
GitHub
Jun 27, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5145 from pks-t/pks/hash-algo-uninit-return
hash: fix missing error return on production builds
parents
73427b94
7fd3f32b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/hash.c
+3
-0
No files found.
src/hash.c
View file @
c4c1500a
...
...
@@ -42,6 +42,7 @@ int git_hash_init(git_hash_ctx *ctx)
return
git_hash_sha1_init
(
&
ctx
->
sha1
);
default:
assert
(
0
);
return
-
1
;
}
}
...
...
@@ -52,6 +53,7 @@ int git_hash_update(git_hash_ctx *ctx, const void *data, size_t len)
return
git_hash_sha1_update
(
&
ctx
->
sha1
,
data
,
len
);
default:
assert
(
0
);
return
-
1
;
}
}
...
...
@@ -62,6 +64,7 @@ int git_hash_final(git_oid *out, git_hash_ctx *ctx)
return
git_hash_sha1_final
(
out
,
&
ctx
->
sha1
);
default:
assert
(
0
);
return
-
1
;
}
}
...
...
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