From 9219d7aa57dd88236a9e5d740a1a6d34de097467 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Mon, 18 Dec 2006 12:32:08 +0000 Subject: [PATCH] Whitespace --- main/SAPI.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/main/SAPI.c b/main/SAPI.c index c23357c65d9..a760ded4a81 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -540,26 +540,26 @@ SAPI_API int sapi_header_op(sapi_header_op_enum op, void *arg TSRMLS_DC) } switch (op) { - case SAPI_HEADER_SET_STATUS: - sapi_update_response_code((long) arg TSRMLS_CC); - return SUCCESS; + case SAPI_HEADER_SET_STATUS: + sapi_update_response_code((long) arg TSRMLS_CC); + return SUCCESS; - case SAPI_HEADER_REPLACE: - case SAPI_HEADER_ADD: { - sapi_header_line *p = arg; - - if (!p->line || !p->line_len) { + case SAPI_HEADER_REPLACE: + case SAPI_HEADER_ADD: { + sapi_header_line *p = arg; + + if (!p->line || !p->line_len) { + return FAILURE; + } + header_line = p->line; + header_line_len = p->line_len; + http_response_code = p->response_code; + replace = (op == SAPI_HEADER_REPLACE); + break; + } + + default: return FAILURE; - } - header_line = p->line; - header_line_len = p->line_len; - http_response_code = p->response_code; - replace = (op == SAPI_HEADER_REPLACE); - break; - } - - default: - return FAILURE; } header_line = estrndup(header_line, header_line_len);