diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-07-02 08:38:00 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-07-02 08:38:00 +0000 |
commit | 091ea637192e56227393f16a67f51bf66e1a567e (patch) | |
tree | e891eeaf37e5ee2a413a308ac1e074c907f461ae /package/mtd/src/mtd.c | |
parent | b3a89652a54016c820858fd92e5dcbd497032194 (diff) | |
download | mtk-20170518-091ea637192e56227393f16a67f51bf66e1a567e.zip mtk-20170518-091ea637192e56227393f16a67f51bf66e1a567e.tar.gz mtk-20170518-091ea637192e56227393f16a67f51bf66e1a567e.tar.bz2 |
package/mtd: don't append jffs2 data multiple times
SVN-Revision: 27358
Diffstat (limited to 'package/mtd/src/mtd.c')
-rw-r--r-- | package/mtd/src/mtd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/package/mtd/src/mtd.c b/package/mtd/src/mtd.c index 7f58165..b335826 100644 --- a/package/mtd/src/mtd.c +++ b/package/mtd/src/mtd.c @@ -409,6 +409,9 @@ resume: /* got an EOF marker - this is the place to add some jffs2 data */ skip = mtd_replace_jffs2(mtd, fd, e, jffs2file); + /* don't add it again */ + jffs2file = NULL; + w += skip; e += skip; skip -= buflen; |