cov fix
authorChristian Grothoff <christian@grothoff.org>
Fri, 4 Nov 2011 13:37:19 +0000 (13:37 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 4 Nov 2011 13:37:19 +0000 (13:37 +0000)
src/util/test_plugin.c

index dc34841f5567de435f6bc78c5685a8312807b052..bfa3cf11087e826f9d06851b1c7faf19da430761 100644 (file)
@@ -31,9 +31,13 @@ test_cb (void *cls,
         const char *libname,
         void *lib_ret)
 {
+  void *ret;
+
   GNUNET_assert (0 == strcmp (cls, "test"));
   GNUNET_assert (0 == strcmp (lib_ret, "Hello"));
-  GNUNET_assert (0 == strcmp (GNUNET_PLUGIN_unload (libname, "out"), "World"));
+  ret = GNUNET_PLUGIN_unload (libname, "out");
+  GNUNET_assert (NULL != ret);
+  GNUNET_assert (0 == strcmp (ret, "World"));
 }