Commit 852fd616 authored by ip_gpu's avatar ip_gpu

fixed from PVS-Studio:

V575 The potential null pointer is passed into 'fread' function. Inspect the first argument. tests.c 126
parent a6797196
......@@ -119,6 +119,7 @@ static const char *read_file_to_string(const char *file)
size = stbuf.st_size;
buf = (char *)malloc(size + 1);
TT_ASSERT_PTR_NOTNULL(buf);
fp = fopen(file, "rt");
TT_ASSERT_PTR_NOTNULL(fp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment