$OpenBSD: patch-src_main_c,v 1.21 2012/05/03 15:19:08 dcoppa Exp $

Globally initialize libCURL
(upstream svn revision r2242)

--- src/main.c.orig	Fri Apr  6 15:19:25 2012
+++ src/main.c	Thu May  3 15:06:04 2012
@@ -778,7 +778,6 @@ int main(int argc, char *argv[])
     use_xscrnsaver = FALSE;
     screensaver_disabled = FALSE;
     update_control_flag = FALSE;
-    gchar *filename;
     skip_fixed_allocation_on_show = FALSE;
     skip_fixed_allocation_on_hide = FALSE;
     pref_volume = -1;
@@ -1017,6 +1016,11 @@ int main(int argc, char *argv[])
     if (verbose) {
         printf("Using audio device: %s\n", audio_device_name);
     }
+#ifdef HAVE_MUSICBRAINZ
+    if (curl_global_init(CURL_GLOBAL_ALL) != 0) {
+        printf("CURL initialization failed\n");
+    }
+#endif
 
     if (softvol) {
         if (verbose)
