1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-11-18 14:47:46 +01:00

Fixed trx - variable append used uninitialised. If -A option was not used, the first offset was not written to the .trx file.

SVN-Revision: 7400
This commit is contained in:
Hamish Guthrie 2007-05-30 10:49:46 +00:00
parent a03b9ae8ad
commit fe57573343

@ -88,7 +88,7 @@ int main(int argc, char **argv)
char *ofn = NULL; char *ofn = NULL;
char *buf; char *buf;
char *e; char *e;
int c, i, append; int c, i, append = 0;
size_t n; size_t n;
uint32_t cur_len; uint32_t cur_len;
unsigned long maxlen = TRX_MAX_LEN; unsigned long maxlen = TRX_MAX_LEN;
@ -231,6 +231,7 @@ int main(int argc, char **argv)
fclose(out); fclose(out);
printf("Offsets:\n0x%08x\n0x%08x\n0x%08x\n", p->offsets[0], p->offsets[1], p->offsets[2]);
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }