tytest: makes more sense (to me) to check len

This commit is contained in:
Boris Faure 2020-11-15 20:19:21 +01:00
parent 9a5f13b12b
commit 7a16744778
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
1 changed files with 1 additions and 1 deletions

View File

@ -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);