From: Antony Dovgal Date: Thu, 21 Dec 2006 21:49:13 +0000 (+0000) Subject: fix ws, cs and overall code readability X-Git-Tag: RELEASE_1_0_0RC1~567 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4bfad779d7c26eecc561ed7525065d50cb557cc3;p=php fix ws, cs and overall code readability --- 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)