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

terminology-1.9
Boris Faure 2 years ago
parent 9a5f13b12b
commit 7a16744778
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
  1. 2
      src/bin/tytest.c

@ -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…
Cancel
Save