From 1bd0494f8c3375c1b6698bf4e6d4d8be324ba934 Mon Sep 17 00:00:00 2001 From: Neel Chauhan Date: Wed, 17 Jun 2020 11:50:27 -0700 Subject: Make summarize_protover_flags() handle NULL and empty string the same --- src/test/test_protover.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/test') diff --git a/src/test/test_protover.c b/src/test/test_protover.c index 9210ed4113..0880274811 100644 --- a/src/test/test_protover.c +++ b/src/test/test_protover.c @@ -789,13 +789,9 @@ test_protover_summarize_flags(void *args) DEBUG_PROTOVER(flags); tt_mem_op(&flags, OP_EQ, &zero_flags, sizeof(flags)); - /* "" sets the protocols_known flag */ memset(&flags, 0, sizeof(flags)); summarize_protover_flags(&flags, "", ""); DEBUG_PROTOVER(flags); - tt_int_op(flags.protocols_known, OP_EQ, 1); - /* Now clear that flag, and check the rest are zero */ - flags.protocols_known = 0; tt_mem_op(&flags, OP_EQ, &zero_flags, sizeof(flags)); /* Now check version exceptions */ -- cgit v1.2.3-54-g00ecf