You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-cvs@httpd.apache.org by jo...@apache.org on 2005/03/10 22:09:15 UTC

svn commit: r156991 - httpd/apreq/branches/multi-env-unstable/library/param.c

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;