patch #8444: Proposal for modifications in -B and -U command options managment

* update.c (parse_op): Default -U filename to RBIN for output
files



git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1425 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Joerg Wunsch
2018-01-21 22:45:45 +00:00
parent d4b40ef6ee
commit f36484ed19
3 changed files with 11 additions and 1 deletions

View File

@@ -113,7 +113,9 @@ UPDATE * parse_op(char * s)
cp = p;
p = strrchr(cp, ':');
if (p == NULL) {
upd->format = FMT_AUTO;
// missing format, default to "AUTO" for write and verify,
// and to binary for read operations:
upd->format = upd->op == DEVICE_READ? FMT_RBIN: FMT_AUTO;
fnlen = strlen(cp);
upd->filename = (char *)malloc(fnlen + 1);
} else {