From 7910f128e296ef66a660935d652fd568941665fc Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 23 Aug 2019 16:18:15 +0200 Subject: Fix noalias violation in select call --- sapi/cli/php_cli.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sapi/cli/php_cli.c') diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 4b2af96a5e..0700e79b15 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -236,19 +236,18 @@ static void print_extensions(void) /* {{{ */ static inline int sapi_cli_select(php_socket_t fd) { - fd_set wfd, dfd; + fd_set wfd; struct timeval tv; int ret; FD_ZERO(&wfd); - FD_ZERO(&dfd); PHP_SAFE_FD_SET(fd, &wfd); tv.tv_sec = (long)FG(default_socket_timeout); tv.tv_usec = 0; - ret = php_select(fd+1, &dfd, &wfd, &dfd, &tv); + ret = php_select(fd+1, NULL, &wfd, NULL, &tv); return ret != -1; } -- cgit v1.2.1