XIMEA: fix

This commit is contained in:
Martin Pulec
2019-12-03 09:37:39 +01:00
parent 78b0630e5f
commit a15e2b6322

View File

@@ -121,7 +121,7 @@ static int vidcap_ximea_parse_params(struct state_vidcap_ximea *s, const char *c
} else if (strstr(tok, "exposure=")) {
char *endptr = NULL;
s->exposure_time_us = strtol(tok + strlen("exposure="), &endptr, 0);
if (*endptr != '\0' || s->exposure < 0) {
if (*endptr != '\0' || s->exposure_time_us < 0) {
goto error;
}
} else {