OSSP CVS Repository

ossp - Check-in [642]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 642
Date: 2001-Aug-09 23:00:10 (local)
2001-Aug-09 21:00:10 (UTC)
User:rse
Branch:
Comment: Add still missing parameter sanity checks
Tickets:
Inspections:
Files:
ossp-pkg/xds/xds.c      1.4 -> 1.5     8 inserted, 0 deleted

ossp-pkg/xds/xds.c 1.4 -> 1.5

--- xds.c        2001/08/09 20:59:05     1.4
+++ xds.c        2001/08/09 21:00:10     1.5
@@ -295,6 +295,10 @@
     int rc;
     va_list args;
 
+    /* Sanity checks. */
+    xds_check_parameter(xds != NULL);
+    xds_check_parameter(fmt != NULL);
+
     va_start(args, fmt);
     rc = xds_vencode(xds, fmt, args);
     va_end(args);
@@ -423,6 +427,10 @@
     int rc;
     va_list args;
 
+    /* Sanity checks. */
+    xds_check_parameter(xds != NULL);
+    xds_check_parameter(fmt != NULL);
+
     va_start(args, fmt);
     rc = xds_vdecode(xds, fmt, args);
     va_end(args);

CVSTrac 2.0.1