diff --git a/src/logger/lib/test/main.c b/src/logger/lib/test/main.c index 18411f8..a0eee48 100644 --- a/src/logger/lib/test/main.c +++ b/src/logger/lib/test/main.c @@ -40,7 +40,7 @@ int main(void) buffer = malloc(bufferSize + 1); //LOAD jsonFile - fread(buffer, bufferSize, 1, fileBuffer); + if (fread(buffer, bufferSize, 1, fileBuffer) == 0) abort(); //TODO: Make it safe printf("%s\n", buffer);