Correct three cases where the wrong expression was checked to see if
an allocation function returned null.
[ghudson@mit.edu: commit message, patch splitting]
ticket: 7534
target_version: 1.11.1
tags: pullup
int i;
*ks_tuple = calloc(n_keys, sizeof(**ks_tuple));
- if (ks_tuple == NULL)
+ if (*ks_tuple == NULL)
return ENOMEM;
for (i = 0; i < n_keys; i++) {
key_pagep =
__get_page(hashp, OADDR_TO_PAGE(DATA_OFF(pagep, ndx)), A_RAW);
- if (!pagep)
+ if (!key_pagep)
return (-1);
key->size = collect_key(hashp, key_pagep, 0, NULL);
key->data = hashp->bigkey_buf;
asn1_const_Finish(&c);
*outdata = malloc((size_t)Tlen);
- if (outdata == NULL) {
+ if (*outdata == NULL) {
retval = ENOMEM;
goto cleanup;
}