Skip to content

Commit

Permalink
Do not raise an error when .macd.json does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilturek committed Mar 27, 2022
1 parent 18ef351 commit 95baf29
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions main.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>

#include <CoreGraphics/CGDisplayConfiguration.h>
#include <cjson/cJSON.h>

Expand Down Expand Up @@ -31,10 +30,7 @@ cJSON *read_configurations()

config_file_ptr = get_config_file("rt");
if (config_file_ptr == NULL)
{
fputs("File error.\n", stderr);
exit(1);
}
return cJSON_CreateArray();

fseek(config_file_ptr, 0, SEEK_END);
config_file_size = ftell(config_file_ptr);
Expand Down

0 comments on commit 95baf29

Please sign in to comment.