# HG changeset patch # User Tomasz Mon # Date 1219248297 -7200 # Node ID 3868d67e7d19b0285e3d49ec8316565108e64077 # Parent c5b7f1d13183926af5c6a35dcbedfeac2d9f7683 uninitialized values are bad diff -r c5b7f1d13183 -r 3868d67e7d19 src/scrobbler/plugin.c --- a/src/scrobbler/plugin.c Wed Aug 20 03:02:09 2008 +0300 +++ b/src/scrobbler/plugin.c Wed Aug 20 18:04:57 2008 +0200 @@ -343,7 +343,7 @@ void setup_proxy(CURL *curl) { mcs_handle_t *db; - gboolean use_proxy; + gboolean use_proxy = FALSE; db = aud_cfg_db_open(); aud_cfg_db_get_bool(db, NULL, "use_proxy", &use_proxy); @@ -353,8 +353,8 @@ } else { - gchar *proxy_host, *proxy_port; - gboolean proxy_use_auth; + gchar *proxy_host = NULL, *proxy_port = NULL; + gboolean proxy_use_auth = FALSE; aud_cfg_db_get_string(db, NULL, "proxy_host", &proxy_host); aud_cfg_db_get_string(db, NULL, "proxy_port", &proxy_port); curl_easy_setopt(curl, CURLOPT_PROXY, proxy_host); @@ -362,7 +362,7 @@ aud_cfg_db_get_bool(db, NULL, "proxy_use_auth", &proxy_use_auth); if (proxy_use_auth != FALSE) { - gchar *userpwd, *user, *pass; + gchar *userpwd = NULL, *user = NULL, *pass = NULL; aud_cfg_db_get_string(db, NULL, "proxy_user", &user); aud_cfg_db_get_string(db, NULL, "proxy_pass", &pass); userpwd = g_strdup_printf("%s:%s", user, pass);