X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-striconveha.c;h=47e9a46e0301a148a419c131fd2d779daf08c8de;hb=c7cf9c5005c207ccc24581f0bddb48a5864d443c;hp=488eec0f8e2d7d0979296f4efe41a430ae1c57c1;hpb=57fdfd3f8ec62b105c53bcdf6f127c35c7fe7391;p=gnulib.git diff --git a/tests/test-striconveha.c b/tests/test-striconveha.c index 488eec0f8..47e9a46e0 100644 --- a/tests/test-striconveha.c +++ b/tests/test-striconveha.c @@ -1,5 +1,5 @@ /* Test of character set conversion with error handling and autodetection. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2008 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -36,6 +36,7 @@ if (!(expr)) \ { \ fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ + fflush (stderr); \ abort (); \ } \ } \ @@ -313,8 +314,7 @@ main () ASSERT (offsets[1] == MAGIC); free (offsets); } - if (result != NULL) - free (result); + free (result); } }