Check-in Number:
|
992 | |
Date: |
2001-Sep-13 18:18:42 (local)
2001-Sep-13 16:18:42 (UTC) |
User: | ms |
Branch: | |
Comment: |
Remove redundant runtime variable checks, added level variable check where it
is needed most. |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/l2/l2_stream.c 1.18 -> 1.19
--- l2_stream.c 2001/09/13 12:35:52 1.18
+++ l2_stream.c 2001/09/13 16:18:42 1.19
@@ -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 */
|
|