summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiarhei Siamashka <siarhei.siamashka@nokia.com>2008-04-17 16:32:28 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-04-17 16:32:28 +0300
commit7280a34fc4dc7a40e6fc0b3317fb09ec90413af7 (patch)
tree81b2192353fd846bc57e513aad143c22e1c167a8
parent731d6f5f032d42dfa7a840a27344a34169add098 (diff)
mkfs.jffs2.c: fix issue with crashing when using lzo compression
Signed-off-by: Siarhei Siamashka <siarhei.siamashka@nokia.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
-rw-r--r--mkfs.jffs2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mkfs.jffs2.c b/mkfs.jffs2.c
index 2f2c371..cdf2a5a 100644
--- a/mkfs.jffs2.c
+++ b/mkfs.jffs2.c
@@ -1662,14 +1662,14 @@ int main(int argc, char **argv)
int compr_prior = -1;
int warn_page_size = 0;
- jffs2_compressors_init();
-
page_size = sysconf(_SC_PAGESIZE);
if (page_size < 0) /* System doesn't know so ... */
page_size = 4096; /* ... we make an educated guess */
if (page_size != 4096)
warn_page_size = 1; /* warn user if page size not 4096 */
+ jffs2_compressors_init();
+
while ((opt = getopt_long(argc, argv,
"D:d:r:s:o:qUPfh?vVe:lbp::nc:m:x:X:Lty:i:", long_options, &c)) >= 0)
{