From 414025e542d66a34e164286e783143cb256dd75e Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Thu, 31 Jan 2008 14:22:24 -0500 Subject: [PATCH] Fix bug in e2fsck which caused it to core dump if --enable-jbd-debug is used Missing curly braces from a python programmer; my bad for noticing it! Signed-off-by: "Theodore Ts'o" --- e2fsck/unix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e2fsck/unix.c b/e2fsck/unix.c index 183116d..4ca13dc 100644 --- a/e2fsck/unix.c +++ b/e2fsck/unix.c @@ -849,7 +849,7 @@ static errcode_t PRS(int argc, char *argv[], e2fsck_t *ret_ctx) } #ifdef CONFIG_JBD_DEBUG jbd_debug = getenv("E2FSCK_JBD_DEBUG"); - if (jbd_debug) + if (jbd_debug) { res = sscanf(jbd_debug, "%d", &journal_enable_debug); if (res != 1) { fprintf(stderr, @@ -857,6 +857,7 @@ static errcode_t PRS(int argc, char *argv[], e2fsck_t *ret_ctx) jbd_debug); exit (1); } + } #endif return 0; -- 1.8.3.1