don't fail if conditional log output didn't actually happen
authorNils Durner <durner@gnunet.org>
Wed, 26 Aug 2009 20:47:59 +0000 (20:47 +0000)
committerNils Durner <durner@gnunet.org>
Wed, 26 Aug 2009 20:47:59 +0000 (20:47 +0000)
src/util/common_logging.c

index a1a60b800bd23395871cc96215217ee6e16a6a32..0ed40b839dd94918b3c354acc3331c6eb554c5a9 100644 (file)
@@ -277,15 +277,10 @@ flush_bulk (const char *datestr)
 void
 GNUNET_log_skip (unsigned int n)
 {
-  int ok;
-
   if (n == 0)
-    {
-      ok = (0 == skip_log);
       skip_log = 0;
-      GNUNET_assert (ok);
-    }
-  skip_log += n;
+  else
+    skip_log += n;
 }