mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-23 09:36:24 +03:00
Ensure pgm->parseextparams()'s LIBAVRDUDE_EXIT return exits in main.c
This commit is contained in:
@@ -1243,7 +1243,10 @@ int main(int argc, char * argv [])
|
||||
pmsg_error("programmer does not support extended parameter -x %s, option ignored\n", extended_param);
|
||||
}
|
||||
} else {
|
||||
if (pgm->parseextparams(pgm, extended_params) < 0) {
|
||||
int rc = pgm->parseextparams(pgm, extended_params);
|
||||
if(rc == LIBAVRDUDE_EXIT)
|
||||
exit(0);
|
||||
if(rc < 0) {
|
||||
pmsg_error("unable to parse extended parameter list\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user