Check for malloc result done on wrong variable.
CID 1255090
This commit is contained in:
@@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user