summaryrefslogtreecommitdiffstats
path: root/tests/chip_wp.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/chip_wp.c')
-rw-r--r--tests/chip_wp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/chip_wp.c b/tests/chip_wp.c
index f20b5001d..cb9b3ab40 100644
--- a/tests/chip_wp.c
+++ b/tests/chip_wp.c
@@ -269,6 +269,7 @@ void full_chip_erase_with_wp_dummyflasher_test_success(void **state)
* be optimized away. */
unsigned long size = flashrom_flash_getsize(&flash);
uint8_t *const contents = malloc(size);
+ assert_non_null(contents);
memset(contents, UNERASED_VALUE(&flash), size);
assert_int_equal(0, flashrom_image_write(&flash, contents, size, NULL));
free(contents);