Check for malloc result done on wrong variable.

CID 1255090
This commit is contained in:
Philippe Saint-Pierre
2015-07-01 19:32:55 -04:00
parent ee1265c58e
commit 2bdea08d38
@@ -475,7 +475,7 @@ get_iovec_array(void)
if (iovec_pool[i] == NULL) { if (iovec_pool[i] == NULL) {
iovec_pool[i] = (struct iovec *)malloc(sizeof(struct iovec)*NUM_FLUSH_BLOCKS); iovec_pool[i] = (struct iovec *)malloc(sizeof(struct iovec)*NUM_FLUSH_BLOCKS);
if (iovec_pool == NULL) if (iovec_pool[i] == NULL)
beos_panic("can't allocate an iovec!\n"); beos_panic("can't allocate an iovec!\n");
} }