From 4bfad779d7c26eecc561ed7525065d50cb557cc3 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Thu, 21 Dec 2006 21:49:13 +0000 Subject: [PATCH] fix ws, cs and overall code readability --- main/SAPI.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/main/SAPI.c b/main/SAPI.c index f3eb0d9398..56488efdc9 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -849,13 +849,15 @@ SAPI_API char *sapi_getenv(char *name, size_t name_len TSRMLS_DC) { if (sapi_module.getenv) { char *value, *tmp = sapi_module.getenv(name, name_len TSRMLS_CC); - if(tmp) value = estrdup(tmp); - else return NULL; + if (tmp) { + value = estrdup(tmp); + } else { + return NULL; + } sapi_module.input_filter(PARSE_ENV, name, &value, strlen(value), NULL TSRMLS_CC); return value; - } else { - return NULL; - } + } + return NULL; } SAPI_API int sapi_get_fd(int *fd TSRMLS_DC) -- 2.50.1