Skip to content
Permalink
Browse files

Make SHA1::addBytes(..., 0) a no-op instead of an assertion failure

  • Loading branch information
kahrl committed Dec 24, 2013
1 parent 3aa28bc commit bf9f50bc0eff2e9231c55a2bfd5f97c27e6de4dd
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit bf9f50b

Please sign in to comment.
You can’t perform that action at this time.