]> granicus.if.org Git - php/commitdiff
fix build
authorAnatol Belski <ab@php.net>
Fri, 14 Nov 2014 21:19:41 +0000 (22:19 +0100)
committerAnatol Belski <ab@php.net>
Fri, 14 Nov 2014 21:19:41 +0000 (22:19 +0100)
ifdef this var declaration to avoid the vs warning

ext/standard/exec.c

index 01aaa71f39e02b89e512b3daa883d8254d9e5950..15e4876af558c21e91bc6a3156d29fa574114299 100644 (file)
@@ -244,6 +244,9 @@ PHPAPI zend_string *php_escape_shell_cmd(char *str)
        register int x, y, l = (int)strlen(str);
        size_t estimate = (2 * l) + 1;
        zend_string *cmd;
+#ifndef PHP_WIN32
+       char *p = NULL;
+#endif
 
        TSRMLS_FETCH();