Skip to content

Commit 6b40119

Browse files
committed
Fix maybe-uninitialized
1 parent b93d136 commit 6b40119

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎main/streams/xp_socket.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,7 @@ static ssize_t php_sockop_read(php_stream *stream, char *buf, size_t count)
175175

176176
/* Compute deadline once so that signal-restart loops don't extend the timeout. */
177177
php_deadline deadline;
178-
if (sock->is_blocked) {
179-
php_deadline_init(&deadline, &sock->timeout);
180-
}
178+
php_deadline_init(&deadline, &sock->timeout);
181179

182180
restart:
183181
if (php_stream_check_signals(stream) == ZEND_SIGNAL_INTERRUPT) {

0 commit comments

Comments
 (0)