diff options
Diffstat (limited to 'main')
| -rw-r--r-- | main/SAPI.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/main/SAPI.c b/main/SAPI.c index 5053c621ad..8abca79ed2 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -918,13 +918,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) |
