diff options
author | Michael Santos <[email protected]> | 2010-10-28 20:45:09 -0400 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2010-10-29 15:31:50 +0200 |
commit | 3a1c6808c41243552915f841ec885d6ecf97ebd6 (patch) | |
tree | 57a2053bcc6dbd5a6972903796c5e305c2ecf0e7 /lib/erl_interface/src/decode/decode_big.c | |
parent | 76378bb4a1a89d08b41d6f3df0edc6c26160bef7 (diff) | |
download | otp-3a1c6808c41243552915f841ec885d6ecf97ebd6.tar.gz otp-3a1c6808c41243552915f841ec885d6ecf97ebd6.tar.bz2 otp-3a1c6808c41243552915f841ec885d6ecf97ebd6.zip |
ei: error if return value of ei_alloc_big is NULL
Diffstat (limited to 'lib/erl_interface/src/decode/decode_big.c')
-rw-r--r-- | lib/erl_interface/src/decode/decode_big.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/erl_interface/src/decode/decode_big.c b/lib/erl_interface/src/decode/decode_big.c index efe9c6e5d9..b5e9b45a3b 100644 --- a/lib/erl_interface/src/decode/decode_big.c +++ b/lib/erl_interface/src/decode/decode_big.c @@ -74,7 +74,7 @@ erlang_big *ei_alloc_big(unsigned int digit_bytes) { memset(b,(char)0,sizeof(erlang_big)); if ( (b->digits = malloc(2*n)) == NULL) { free(b); - return 0; + return NULL; } b->arity = digit_bytes; |