diff options
author | Nikita Popov <nikic@php.net> | 2015-07-09 20:40:07 +0200 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2015-07-09 20:40:07 +0200 |
commit | 788c4c852d0b0523eb918039e4ac3247f5c8a6d0 (patch) | |
tree | 01d6a58516586a27198980329e673f0e2894e5e4 /ext/posix/posix.c | |
parent | cc876c04b420589cb1f62b650d0c0e24975dd4af (diff) | |
download | php-git-788c4c852d0b0523eb918039e4ac3247f5c8a6d0.tar.gz |
Fix posix_setrlimit segfault
Diffstat (limited to 'ext/posix/posix.c')
-rw-r--r-- | ext/posix/posix.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/posix/posix.c b/ext/posix/posix.c index 6d34da7609..547e93e58e 100644 --- a/ext/posix/posix.c +++ b/ext/posix/posix.c @@ -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; |