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",
|
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;
|
||||||
|
Reference in New Issue
Block a user