diff options
Diffstat (limited to 'mkfs.jffs2.c')
-rw-r--r-- | mkfs.jffs2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mkfs.jffs2.c b/mkfs.jffs2.c index feac88d..8d1c7a5 100644 --- a/mkfs.jffs2.c +++ b/mkfs.jffs2.c @@ -866,7 +866,8 @@ static void write_regular_file(struct filesystem_entry *e) len -= dsize; offset += dsize; - if (tbuf!=cbuf) if (!cbuf) free(cbuf); + if (tbuf!= cbuf) + free(cbuf); } } if (!je32_to_cpu(ri.version)) { @@ -1202,7 +1203,7 @@ static char *helptext = " -V, --version Display version information\n" " -i, --incremental=FILE Parse FILE and generate appendage output for it\n\n"; -static char *revtext = "$Revision: 1.45 $"; +static char *revtext = "$Revision: 1.49 $"; int load_next_block() { |