From 8120a81789dcaf6ce76e60745b618164f2a77200 Mon Sep 17 00:00:00 2001 Message-Id: <8120a81789dcaf6ce76e60745b618164f2a77200.1715608625.git.mdw@distorted.org.uk> From: Mark Wooding Date: Thu, 17 Jun 2010 21:05:35 +0100 Subject: [PATCH] check_string() should check that GOT is non-NULL, not WANT! Organization: Straylight/Edgeware From: Richard Kettlewell --- libtests/test.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtests/test.h b/libtests/test.h index cada395..87f0224 100644 --- a/libtests/test.h +++ b/libtests/test.h @@ -95,7 +95,7 @@ extern int skipped; const char *got = GOT; \ const char *want = WANT; \ \ - if(want == 0) { \ + if(got == 0) { \ fprintf(stderr, "%s:%d: %s returned 0\n", \ __FILE__, __LINE__, #GOT); \ count_error(); \ -- [mdw]