summaryrefslogtreecommitdiff
path: root/main/safe_mode.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/safe_mode.c')
-rw-r--r--main/safe_mode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/safe_mode.c b/main/safe_mode.c
index 9271610f9b..0412433b22 100644
--- a/main/safe_mode.c
+++ b/main/safe_mode.c
@@ -207,11 +207,11 @@ PHPAPI char *php_get_current_user()
pstat = sapi_get_stat(TSRMLS_C);
if (!pstat) {
- return empty_string;
+ return "";
}
if ((pwd=getpwuid(pstat->st_uid))==NULL) {
- return empty_string;
+ return "";
}
SG(request_info).current_user_length = strlen(pwd->pw_name);
SG(request_info).current_user = estrndup(pwd->pw_name, SG(request_info).current_user_length);