Author: joes
Date: Fri Apr 8 20:08:06 2005
New Revision: 160656
URL: http://svn.apache.org/viewcvs?view=rev&rev=160656
Log:
goto sucks.
Submitted by: Max Kellermann
Reviewed by: joes
Modified:
httpd/apreq/branches/multi-env-unstable/library/module_custom.c
Modified: httpd/apreq/branches/multi-env-unstable/library/module_custom.c
URL:
http://svn.apache.org/viewcvs/httpd/apreq/branches/multi-env-unstable/library/module_custom.c?view=diff&r1=160655&r2=160656
==============================================================================
--- httpd/apreq/branches/multi-env-unstable/library/module_custom.c (original)
+++ httpd/apreq/branches/multi-env-unstable/library/module_custom.c Fri Apr 8
20:08:06 2005
@@ -159,14 +159,13 @@
if (handle->body == NULL || name == NULL)
return NULL;
- get_body_value:
+ while (1) {
+ *(const char **)&val = apr_table_get(handle->body, name);
+ if (val != NULL)
+ break;
- *(const char **)&val = apr_table_get(handle->body, name);
- if (val == NULL) {
- if (handle->body_status == APR_INCOMPLETE) {
+ if (handle->body_status == APR_INCOMPLETE)
custom_parse_brigade(env, READ_BYTES);
- goto get_body_value;
- }
else
return NULL;
}