Rocco Rutte:
authorpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Fri, 14 Oct 2005 10:47:50 +0000 (10:47 +0000)
committerpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Fri, 14 Oct 2005 10:47:50 +0000 (10:47 +0000)
- 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
main.c

index c13c4e8..75e27a6 100644 (file)
@@ -1 +1 @@
-549
+550
diff --git a/main.c b/main.c
index 1458f72..24eb705 100644 (file)
--- 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':