open-safer.c: avoid 'signed and unsigned in conditional...' warning
[gnulib.git] / tests / test-c-strcasestr.c
index 012571d..e3ff0e2 100644 (file)
@@ -30,6 +30,7 @@
       if (!(expr))                                                          \
         {                                                                   \
           fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
+          fflush (stderr);                                                  \
           abort ();                                                         \
         }                                                                   \
     }                                                                       \
@@ -136,10 +137,8 @@ main ()
        result = c_strcasestr (haystack, needle);
        ASSERT (result == haystack + m);
       }
-    if (needle != NULL)
-      free (needle);
-    if (haystack != NULL)
-      free (haystack);
+    free (needle);
+    free (haystack);
   }
 
   return 0;