From fc6abafa44b6725ab210f045a00c10634bacc8c5 Mon Sep 17 00:00:00 2001 From: pdmef Date: Fri, 14 Oct 2005 10:47:50 +0000 Subject: [PATCH] Rocco Rutte: - bug fix: fake '-d X' command line option using ugly '-e "set debug_level=X"' so that level from command line isn't ignored due to option initializing... git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@550 e385b8ad-14ed-0310-8656-cc95a2468c6d --- VERSION.svn | 2 +- main.c | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/VERSION.svn b/VERSION.svn index c13c4e8..75e27a6 100644 --- a/VERSION.svn +++ b/VERSION.svn @@ -1 +1 @@ -549 +550 diff --git a/main.c b/main.c index 1458f72..24eb705 100644 --- a/main.c +++ b/main.c @@ -639,10 +639,11 @@ int main (int argc, char **argv) break; case 'd': - debug_setlevel(atoi(optarg)); -#ifndef DEBUG - printf _("DEBUG was not defined during compilation. Ignored.\n"); -#endif + { + char puke[20]; + snprintf (puke, sizeof (puke), "set debug_level=%d", atoi (optarg)); + commands = mutt_add_list (commands, puke); + } break; case 't': -- 2.20.1