Skip to content

Commit fb2585f

Browse files
committed
streams: use -1 directly instead of FAILURE macro
The result of the functions returning those globals is never checked anyway
1 parent 4b6ebcc commit fb2585f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main/streams/streams.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
/* {{{ resource and registration code */
3636
/* Global wrapper hash, copied to FG(stream_wrappers) on registration of volatile wrapper */
3737
static HashTable url_stream_wrappers_hash;
38-
static int le_stream = FAILURE; /* true global */
39-
static int le_pstream = FAILURE; /* true global */
40-
static int le_stream_filter = FAILURE; /* true global */
38+
static int le_stream = -1; /* true global */
39+
static int le_pstream = -1; /* true global */
40+
static int le_stream_filter = -1; /* true global */
4141

4242
PHPAPI int php_file_le_stream(void)
4343
{

0 commit comments

Comments
 (0)