tytest: makes more sense (to me) to check len
This commit is contained in:
parent
9a5f13b12b
commit
7a16744778
|
@ -186,7 +186,7 @@ _tytest_checksum(Termpty *ty)
|
|||
MD5Update(&ctx, (unsigned char const*)cursor_shape,
|
||||
strlen(cursor_shape));
|
||||
/* Write buffer */
|
||||
if (ty->write_buffer.buf)
|
||||
if (ty->write_buffer.len)
|
||||
{
|
||||
MD5Update(&ctx, (unsigned char const*)ty->write_buffer.buf,
|
||||
ty->write_buffer.len);
|
||||
|
|
Loading…
Reference in New Issue