Skip to content

Commit

Permalink
Fix posix_setrlimit segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Jul 9, 2015
1 parent cc876c0 commit 788c4c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ext/posix/posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -1389,8 +1389,7 @@ PHP_FUNCTION(posix_getrlimit)
PHP_FUNCTION(posix_setrlimit)
{
struct rlimit rl;
zend_long cur, max;
int res;
zend_long res, cur, max;

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

0 comments on commit 788c4c8

Please sign in to comment.