]> granicus.if.org Git - php/commitdiff
fix ws, cs and overall code readability
authorAntony Dovgal <tony2001@php.net>
Thu, 21 Dec 2006 21:49:13 +0000 (21:49 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 21 Dec 2006 21:49:13 +0000 (21:49 +0000)
main/SAPI.c

index f3eb0d9398e53747cebc8cc6bdaeb048ae6bb3d1..56488efdc9e9577624b7b7327d63b7647d5a73b4 100644 (file)
@@ -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)