represent 0 as a single byte
This commit is contained in:
1 parent
320fd5fe62
commit
4670661d6d
1 file changed
+1
-5
@@ -239,12 +239,8 @@ static inline chunk_t chunk_skip(chunk_t chunk, size_t bytes)
|
||||
*/
|
||||
static inline chunk_t chunk_skip_zero(chunk_t chunk)
|
||||
{
|
||||
if (chunk.len && *chunk.ptr == 0x00)
|
||||
if (chunk.len > 1 && *chunk.ptr == 0x00)
|
||||
{
|
||||
if (chunk.len == 1)
|
||||
{
|
||||
return chunk_empty;
|
||||
}
|
||||
chunk.ptr++;
|
||||
chunk.len--;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user