From: Anatol Belski Date: Fri, 29 Aug 2014 09:21:07 +0000 (+0200) Subject: avoid usage of 'type' before the null pointer check X-Git-Tag: PRE_PHP7_REMOVALS~200 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34f536693cc4696285f491e79ed14a6cee303b8f;p=php avoid usage of 'type' before the null pointer check --- diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c index a116aaf457..0b8228aafb 100644 --- a/TSRM/tsrm_win32.c +++ b/TSRM/tsrm_win32.c @@ -457,7 +457,7 @@ TSRM_API FILE *popen(const char *command, const char *type) TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd, char *env TSRMLS_DC) { FILE *stream = NULL; - int fno, type_len = strlen(type), read, mode; + int fno, type_len, read, mode; STARTUPINFO startup; PROCESS_INFORMATION process; SECURITY_ATTRIBUTES security;