]> granicus.if.org Git - php/commitdiff
MFH
authorAntony Dovgal <tony2001@php.net>
Thu, 21 Dec 2006 21:49:22 +0000 (21:49 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 21 Dec 2006 21:49:22 +0000 (21:49 +0000)
main/SAPI.c

index 5053c621ad0904dffd841891c77e7288706080e4..8abca79ed20798323f0f62d3e3754574a30ee7dd 100644 (file)
@@ -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)