projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3aa28bc
)
Make SHA1::addBytes(..., 0) a no-op instead of an assertion failure
author
Kahrl
<kahrl@gmx.net>
Tue, 24 Dec 2013 23:29:00 +0000
(
00:29
+0100)
committer
Kahrl
<kahrl@gmx.net>
Tue, 24 Dec 2013 23:29:00 +0000
(
00:29
+0100)
src/sha1.cpp
patch
|
blob
|
history
diff --git
a/src/sha1.cpp
b/src/sha1.cpp
index 98180adc7ec3aa2a4a1eeb616ca2cfee691a55b5..6ed7385d51fa255b719eee7a1ec634319fda0148 100644
(file)
--- a/
src/sha1.cpp
+++ b/
src/sha1.cpp
@@
-146,7
+146,7
@@
void SHA1::process()
void SHA1::addBytes( const char* data, int num )
{
assert( data );
- assert( num > 0 );
+ assert( num >
=
0 );
// add these bytes to the running total
size += num;
// repeat until all data is processed