Skip to content

Commit 7910f12

Browse files
committed
Fix noalias violation in select call
1 parent 6534ff1 commit 7910f12

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sapi/cli/php_cli.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,19 +236,18 @@ static void print_extensions(void) /* {{{ */
236236

237237
static inline int sapi_cli_select(php_socket_t fd)
238238
{
239-
fd_set wfd, dfd;
239+
fd_set wfd;
240240
struct timeval tv;
241241
int ret;
242242

243243
FD_ZERO(&wfd);
244-
FD_ZERO(&dfd);
245244

246245
PHP_SAFE_FD_SET(fd, &wfd);
247246

248247
tv.tv_sec = (long)FG(default_socket_timeout);
249248
tv.tv_usec = 0;
250249

251-
ret = php_select(fd+1, &dfd, &wfd, &dfd, &tv);
250+
ret = php_select(fd+1, NULL, &wfd, NULL, &tv);
252251

253252
return ret != -1;
254253
}

0 commit comments

Comments
 (0)