From 7280a34fc4dc7a40e6fc0b3317fb09ec90413af7 Mon Sep 17 00:00:00 2001 From: Siarhei Siamashka Date: Thu, 17 Apr 2008 16:32:28 +0300 Subject: mkfs.jffs2.c: fix issue with crashing when using lzo compression Signed-off-by: Siarhei Siamashka Signed-off-by: Artem Bityutskiy --- mkfs.jffs2.c | 4 ++-- 1 file 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) { -- cgit v1.2.3