aboutsummaryrefslogtreecommitdiffstats
path: root/erts/etc
diff options
context:
space:
mode:
authorCristian Greco <[email protected]>2011-02-23 01:41:23 +0100
committerCristian Greco <[email protected]>2011-02-23 01:41:23 +0100
commit47f9ef2ee5f3d9a79038fe8318c740a7c4345541 (patch)
treeea5828c08ce1c175aa8aa61667903eba042cee56 /erts/etc
parentb0d6abb72cf32df548703b284b737a4a7c0a9d8a (diff)
downloadotp-47f9ef2ee5f3d9a79038fe8318c740a7c4345541.tar.gz
otp-47f9ef2ee5f3d9a79038fe8318c740a7c4345541.tar.bz2
otp-47f9ef2ee5f3d9a79038fe8318c740a7c4345541.zip
Fix some wrong pointer dereferences
Diffstat (limited to 'erts/etc')
-rw-r--r--erts/etc/common/inet_gethost.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/etc/common/inet_gethost.c b/erts/etc/common/inet_gethost.c
index 8bd9368aa1..18ccf974aa 100644
--- a/erts/etc/common/inet_gethost.c
+++ b/erts/etc/common/inet_gethost.c
@@ -1297,7 +1297,7 @@ static int read_request(AddrByte **buff, size_t *buff_size)
}
if (siz > *buff_size) {
- if (buff_size == 0) {
+ if (*buff_size == 0) {
*buff = ALLOC((*buff_size = siz));
} else {
*buff = REALLOC(*buff, (*buff_size = siz));