From: Fabian Keil <fk@fabiankeil.de>
Date: Wed, 17 Oct 2012 18:02:10 +0000 (+0000)
Subject: Use parse_toggle_state() to get the global_toggle_state
X-Git-Tag: v_3_0_20~252
X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/faq/%22https:/@default-cgi@edit-actions-add-url-form?a=commitdiff_plain;h=de90c1c695fe3740c965bd875beb53984a9fe87a;p=privoxy.git

Use parse_toggle_state() to get the global_toggle_state
---

diff --git a/loadcfg.c b/loadcfg.c
index e893f77f..8975a1ed 100644
--- a/loadcfg.c
+++ b/loadcfg.c
@@ -1,4 +1,4 @@
-const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.130 2012/07/27 17:36:06 fabiankeil Exp $";
+const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.131 2012/10/05 12:16:23 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/loadcfg.c,v $
@@ -1340,7 +1340,7 @@ struct configuration_spec * load_config(void)
  * *************************************************************************/
 #ifdef FEATURE_TOGGLE
          case hash_toggle :
-            global_toggle_state = atoi(arg);
+            global_toggle_state = parse_toggle_state(cmd, arg);
             break;
 #endif /* def FEATURE_TOGGLE */