diff options
Diffstat (limited to 'tests/test_tables.c')
-rw-r--r-- | tests/test_tables.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_tables.c b/tests/test_tables.c index a7f5f22..5015002 100644 --- a/tests/test_tables.c +++ b/tests/test_tables.c @@ -465,6 +465,9 @@ int main(void) } expected_path = malloc(strlen(srcdir) + strlen(expected_file_name) + 2); + if (!expected_path) { + die("out of memory"); + } sprintf(expected_path, "%s/%s", srcdir, expected_file_name); expected = fopen(expected_path, "r"); if (!expected) { |