From 34f536693cc4696285f491e79ed14a6cee303b8f Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Fri, 29 Aug 2014 11:21:07 +0200 Subject: [PATCH] avoid usage of 'type' before the null pointer check --- TSRM/tsrm_win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1