summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2016-03-13 22:05:13 -0700
committerAlan Antonuk <alan.antonuk@gmail.com>2016-04-09 20:23:07 -0700
commit5c7a48dcf52dbcd9ed6fcc0bb08b770c70e5023a (patch)
treec83b91c2c0b0e848b5e873deefb552eaa9303044 /tests
parentfac3ed2e1c26757af155fc02aa6ea2a966f3904d (diff)
downloadrabbitmq-c-5c7a48dcf52dbcd9ed6fcc0bb08b770c70e5023a.tar.gz
Fix: small warning fixes.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_tables.c3
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) {