Skip to content

Commit

Permalink
reverted too much
Browse files Browse the repository at this point in the history
  • Loading branch information
weltling committed Sep 19, 2014
1 parent d1131d4 commit d4c5271
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions main/fopen_wrappers.c
Original file line number Diff line number Diff line change
Expand Up @@ -759,11 +759,15 @@ PHPAPI char *expand_filepath_with_mode(const char *filepath, char *real_path, co
cwd_state new_state;
char cwd[MAXPATHLEN];
int copy_len;
int path_len = (int)strlen(filepath);
int path_len;

if (!filepath[0]) {
return NULL;
} else if (IS_ABSOLUTE_PATH(filepath, path_len)) {
}

path_len = (int)strlen(filepath);

if (IS_ABSOLUTE_PATH(filepath, path_len)) {
cwd[0] = '\0';
} else {
const char *iam = SG(request_info).path_translated;
Expand Down

0 comments on commit d4c5271

Please sign in to comment.