fix pointer type mistake in find_calibration loop
This commit is contained in:
@@ -24,8 +24,8 @@ find_calibration(size_t size, char *conffile, const char *sensor)
|
||||
DATADIR "/megapixels/config/%s,%s.dcp",
|
||||
NULL
|
||||
};
|
||||
for (const char *fmt = paths[0]; fmt; fmt++) {
|
||||
snprintf(conffile, size, fmt, model, sensor);
|
||||
for (const char **fmt = paths; *fmt; fmt++) {
|
||||
snprintf(conffile, size, *fmt, model, sensor);
|
||||
if (access(conffile, F_OK) != -1) {
|
||||
printf("Found calibration file at %s\n", conffile);
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user