Mercurial > audlegacy-plugins
comparison src/neon/neon.c @ 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 | b37cea7ef4a9 |
children | 2662c3a11f9f |
comparison
equal
deleted
inserted
replaced
1914:5e88191720a7 | 1923:bf6a0330c939 |
---|---|
529 gboolean use_proxy; | 529 gboolean use_proxy; |
530 | 530 |
531 _ENTER; | 531 _ENTER; |
532 | 532 |
533 db = bmp_cfg_db_open(); | 533 db = bmp_cfg_db_open(); |
534 bmp_cfg_db_get_bool(db, NULL, "use_proxy", &use_proxy); | 534 if (FALSE == bmp_cfg_db_get_bool(db, NULL, "use_proxy", &use_proxy)) { |
535 use_proxy = FALSE; | |
536 } | |
537 | |
535 if (use_proxy) { | 538 if (use_proxy) { |
536 if (FALSE == bmp_cfg_db_get_string(db, NULL, "proxy_host", &proxy_host)) { | 539 if (FALSE == bmp_cfg_db_get_string(db, NULL, "proxy_host", &proxy_host)) { |
537 _ERROR("Could not read proxy host, disabling proxy use"); | 540 _ERROR("Could not read proxy host, disabling proxy use"); |
538 use_proxy = FALSE; | 541 use_proxy = FALSE; |
539 } | 542 } |