mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-19 14:08:11 +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;
|
uint32_t jobid, change, from, to;
|
||||||
int r;
|
int r;
|
||||||
for (;;) {
|
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);
|
r = sscanf(line, "%u %s %u %u %u\n", &jobid, xpub, &change, &from, &to);
|
||||||
if (r < 1) {
|
if (r < 1) {
|
||||||
printf("error\n");
|
printf("error\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user