changeset 1923:bf6a0330c939

- Properly check if we could read the use_proxy property from the config
author Ralf Ertzinger <ralf@skytale.net>
date Sun, 30 Sep 2007 21:33:58 +0200
parents 5e88191720a7
children 725b5f3f0242
files src/neon/neon.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/neon/neon.c	Fri Sep 28 17:02:03 2007 +0200
+++ b/src/neon/neon.c	Sun Sep 30 21:33:58 2007 +0200
@@ -531,7 +531,10 @@
     _ENTER;
 
     db = bmp_cfg_db_open();
-    bmp_cfg_db_get_bool(db, NULL, "use_proxy", &use_proxy);
+    if (FALSE == bmp_cfg_db_get_bool(db, NULL, "use_proxy", &use_proxy)) {
+        use_proxy = FALSE;
+    }
+
     if (use_proxy) {
         if (FALSE == bmp_cfg_db_get_string(db, NULL, "proxy_host", &proxy_host)) {
             _ERROR("Could not read proxy host, disabling proxy use");