Fix fallback to pif.json if included

- pif.json is only to be used in building the module if at some point in the future it's safe to include pif.json in the module zip again
- custom.pif.json is still the correct name to use for retaining the custom file through a module update
This commit is contained in:
Chris Renshaw
2023-12-09 20:49:30 -04:00
committed by GitHub
parent 9cd7ab38bb
commit 42cffcbe62

View File

@@ -251,7 +251,7 @@ static void companion(int fd) {
FILE *json = fopen(CUSTOM_JSON_FILE_PATH, "r"); FILE *json = fopen(CUSTOM_JSON_FILE_PATH, "r");
if (!json) if (!json)
FILE *json = fopen(JSON_FILE_PATH, "r"); json = fopen(JSON_FILE_PATH, "r");
if (json) { if (json) {
fseek(json, 0, SEEK_END); fseek(json, 0, SEEK_END);