diff options
author | Anatol Belski <ab@php.net> | 2014-09-19 15:59:55 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-09-19 16:30:05 +0200 |
commit | d1131d4278ce645d359aa74ee549183beff545a4 (patch) | |
tree | 20682478da89cc92596858ee07969ae49056aa1a /TSRM | |
parent | 149db936d43ba31bb41da62b0d26d510f32514ee (diff) | |
download | php-git-d1131d4278ce645d359aa74ee549183beff545a4.tar.gz |
reverted some previous IS_ABSOLUTE_PATH related changes
It's fine with strlen usage now, only one call
Diffstat (limited to 'TSRM')
-rw-r--r-- | TSRM/tsrm_win32.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c index 7a7ab5dfcb..0b8228aafb 100644 --- a/TSRM/tsrm_win32.c +++ b/TSRM/tsrm_win32.c @@ -212,8 +212,7 @@ TSRM_API int tsrm_win32_access(const char *pathname, int mode TSRMLS_DC) DWORD type; return GetBinaryType(pathname, &type) ? 0 : -1; } else { - size_t pathname_len = strlen(pathname) + 1; - if(!IS_ABSOLUTE_PATH(pathname, pathname_len)) { + if(!IS_ABSOLUTE_PATH(pathname, strlen(pathname)+1)) { real_path = (char *)malloc(MAX_PATH); if(tsrm_realpath(pathname, real_path TSRMLS_CC) == NULL) { goto Finished; |