Skip to content

Commit 788c4c8

Browse files
committed
Fix posix_setrlimit segfault
1 parent cc876c0 commit 788c4c8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/posix/posix.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,8 +1389,7 @@ PHP_FUNCTION(posix_getrlimit)
13891389
PHP_FUNCTION(posix_setrlimit)
13901390
{
13911391
struct rlimit rl;
1392-
zend_long cur, max;
1393-
int res;
1392+
zend_long res, cur, max;
13941393

13951394
if (zend_parse_parameters(ZEND_NUM_ARGS(), "lll", &res, &cur, &max) == FAILURE) {
13961395
RETURN_FALSE;

0 commit comments

Comments
 (0)