OSSP CVS Repository

ossp - Difference in ossp-pkg/xds/xds.c versions 1.4 and 1.5
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

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