Author: joes
Date: Sun Mar 13 06:54:28 2005
New Revision: 157331

URL: http://svn.apache.org/viewcvs?view=rev&rev=157331
Log:
Make apreq_join() and apreq_params_as_string() return an empty
string on n==0.

Submitted by: Max Kellermann
Reviewed by: joes

Modified:
    httpd/apreq/branches/multi-env-unstable/include/apreq_util.h

Modified: httpd/apreq/branches/multi-env-unstable/include/apreq_util.h
URL: 
http://svn.apache.org/viewcvs/httpd/apreq/branches/multi-env-unstable/include/apreq_util.h?view=diff&r1=157330&r2=157331
==============================================================================
--- httpd/apreq/branches/multi-env-unstable/include/apreq_util.h (original)
+++ httpd/apreq/branches/multi-env-unstable/include/apreq_util.h Sun Mar 13 
06:54:28 2005
@@ -39,14 +39,15 @@
  */
 
 /**
- * Join an array of values.
+ * Join an array of values. The result is an empty string if there are
+ * no values.
  *
  * @param p    Pool to allocate return value.
  * @param sep  String that is inserted between the joined values.
  * @param arr  Array of apreq_value_t entries.
  * @param mode Join type- see apreq_join_t.
  *
- * @return Resulting string; can be upgraded to an apreq_value_t.
+ * @return Resulting string or NULL on error
  */
 APREQ_DECLARE(char *) apreq_join(apr_pool_t *p, 
                                  const char *sep, 


Reply via email to