Don't call exit() directly here - set the exit value and jump to the

main_exit: label to ensure the programmer is released correctly.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@483 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
bdean 2005-07-26 04:13:34 +00:00
parent 301eaff2d6
commit c844bd1236
1 changed files with 2 additions and 1 deletions

3
main.c
View File

@ -1208,7 +1208,8 @@ int main(int argc, char * argv [])
if (rc != 0) { if (rc != 0) {
fprintf(stderr, "%s: error reading signature data, rc=%d\n", fprintf(stderr, "%s: error reading signature data, rc=%d\n",
progname, rc); progname, rc);
exit(1); exitrc = 1;
goto main_exit;
} }
sig = avr_locate_mem(p, "signature"); sig = avr_locate_mem(p, "signature");