fix pointer type mistake in find_calibration loop

This commit is contained in:
Egor Shestakov
2025-03-20 16:10:41 +07:00
parent e02b54ec57
commit 970f320894

View File

@@ -24,8 +24,8 @@ find_calibration(size_t size, char *conffile, const char *sensor)
DATADIR "/megapixels/config/%s,%s.dcp", DATADIR "/megapixels/config/%s,%s.dcp",
NULL NULL
}; };
for (const char *fmt = paths[0]; fmt; fmt++) { for (const char **fmt = paths; *fmt; fmt++) {
snprintf(conffile, size, fmt, model, sensor); snprintf(conffile, size, *fmt, model, sensor);
if (access(conffile, F_OK) != -1) { if (access(conffile, F_OK) != -1) {
printf("Found calibration file at %s\n", conffile); printf("Found calibration file at %s\n", conffile);
return true; return true;