httpd-apreq-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r156991 - httpd/apreq/branches/multi-env-unstable/library/param.c
Date Thu, 10 Mar 2005 21:09:15 GMT
Author: joes
Date: Thu Mar 10 13:09:14 2005
New Revision: 156991

URL: http://svn.apache.org/viewcvs?view=rev&rev=156991
Log:
Corrections to apreq_param_decode: 
  missing flags initializer,
  vlen==0 case needs a trailing '\0'.

Submitted by: Max Kellermann
Reviewed by: joes

Modified:
    httpd/apreq/branches/multi-env-unstable/library/param.c

Modified: httpd/apreq/branches/multi-env-unstable/library/param.c
URL: http://svn.apache.org/viewcvs/httpd/apreq/branches/multi-env-unstable/library/param.c?view=diff&r1=156990&r2=156991
==============================================================================
--- httpd/apreq/branches/multi-env-unstable/library/param.c (original)
+++ httpd/apreq/branches/multi-env-unstable/library/param.c Thu Mar 10 13:09:14 2005
@@ -99,6 +99,7 @@
     p = apr_palloc(pool, nlen + vlen + 1 + sizeof *p);
     p->info = NULL;
     p->upload = NULL;
+    p->flags = 0;
     *(const apreq_value_t **)&v = &p->v;
 
     if (vlen > 0) {
@@ -110,6 +111,7 @@
     }
     else {
         v->data[0] = 0;
+        v->dlen = 0;
     }
     v->name = v->data + vlen + 1;
 



Mime
View raw message