OSSP CVS Repository

ossp - Difference in ossp-pkg/l2/l2_stream.c versions 1.16 and 1.17
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/l2/l2_stream.c 1.16 -> 1.17

--- l2_stream.c  2001/09/12 13:50:46     1.16
+++ l2_stream.c  2001/09/13 11:58:05     1.17
@@ -128,10 +128,6 @@
     va_list ap;
     l2_result_t rv;
 
-    /* argument sanity check */
-    if (st == NULL || level == 0 || fmt == NULL)
-        return L2_ERR_ARG;
-
     /* pass-through to va_list-based variant */
     va_start(ap, fmt);
     rv = l2_stream_vlog(st, level, fmt, ap);
@@ -188,7 +184,7 @@
     l2_util_format_t vfmt;
 
     /* argument sanity check */
-    if (st == NULL || fmt == NULL || ap == NULL)
+    if (st == NULL || level == 0 || fmt == NULL || ap == NULL)
         return L2_ERR_ARG;
 
     /* make sure only a single level is specified */

CVSTrac 2.0.1