From 218c056552282246dccf9c37eed78c5056ed5a35 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 25 Jun 2024 16:02:09 +0200 Subject: Fix double output bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- xtest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xtest.c b/xtest.c index ce4dfda..7a45089 100644 --- a/xtest.c +++ b/xtest.c @@ -86,14 +86,14 @@ test(char *s) if ((pos_tests & j) && testmap[i](s)) { printf("%s%c", s, delim); fflush(stdout); - break; + return; } } for (i = 0; j = 1L << i, j <= neg_tests; i++) { if ((neg_tests & j) && !testmap[i](s)) { printf("%s%c", s, delim); fflush(stdout); - break; + return; } } } -- cgit v1.2.3-70-g09d2