com php-src: Reorder: main/main.c
| From: | Xinchen Hui | Date: | Fri, 27 Feb 2015 04:02:42 +0000 |
| Subject: | com php-src: Reorder: main/main.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85106@lists.php.net to get a copy of this message | ||
Commit: 4eb830b212b3f0c53ed208723520e77a26b13e2b
Author: Xinchen Hui <laruence@php.net> Fri, 27 Feb 2015 12:02:42 +0800
Parents: ebfc49aa918044e65b3704933224a807d98b4e68
Branches: PHP-5.5 PHP-5.6 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4eb830b212b3f0c53ed208723520e77a26b13e2b
Log:
Reorder
Changed paths:
M main/main.c
Diff:
diff --git a/main/main.c b/main/main..c
index 1f6c4cf..8f5bac1 100644
--- a/main/main.c
+++ b/main/main.c
@@ -1246,12 +1246,11 @@ PHPAPI char *php_get_current_user(TSRMLS_D)
efree(pwbuf);
return "";
}
- pwd = &_pw;
-
if (retpwptr == NULL) {
efree(pwbuf);
return "";
}
+ pwd = &_pw;
#else
if ((pwd=getpwuid(pstat->st_uid))==NULL) {
return "";