From 25518705f293acb98cadbc2f271e8880412f4a6c Mon Sep 17 00:00:00 2001 From: Rocco Rutte Date: Fri, 20 Feb 2009 13:05:08 +0100 Subject: [PATCH] Set magic from -m before processing queries (-Q) or dumping variables (-D) --- main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 3d3c0f1fa..b984d7042 100644 --- a/main.c +++ b/main.c @@ -741,6 +741,9 @@ int main (int argc, char **argv) /* Initialize crypto backends. */ crypt_init (); + if (newMagic) + mx_set_magic (newMagic); + if (queries) { for (; optind < argc; optind++) @@ -773,9 +776,6 @@ int main (int argc, char **argv) return rv; } - if (newMagic) - mx_set_magic (newMagic); - if (!option (OPTNOCURSES)) { SETCOLOR (MT_COLOR_NORMAL); -- 2.40.0