mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-16 19:38:09 +00:00
add break condition to xpubaddrgen
This commit is contained in:
parent
9fea8f8ab3
commit
2880a2e3db
@ -29,7 +29,7 @@ int main(void)
|
||||
uint32_t jobid, change, from, to;
|
||||
int r;
|
||||
for (;;) {
|
||||
fgets(line, sizeof(line), stdin);
|
||||
if (!fgets(line, sizeof(line), stdin)) break;
|
||||
r = sscanf(line, "%u %s %u %u %u\n", &jobid, xpub, &change, &from, &to);
|
||||
if (r < 1) {
|
||||
printf("error\n");
|
||||
|
Loading…
Reference in New Issue
Block a user