]> git.sesse.net Git - vlc/commitdiff
Contrib: fix crash in CDDB on Windows
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 2 Jan 2015 14:56:00 +0000 (15:56 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 2 Jan 2015 14:56:00 +0000 (15:56 +0100)
Close #13465

contrib/src/cddb/getenv-crash.patch

index 48888ef052bcb7d59f6475d90a804f5e6d2754a9..577db8f74ff9163e319cf076b9aa35f312f4ce38 100644 (file)
@@ -1,6 +1,6 @@
 --- libcddb/lib/cddb_conn.c    2006-10-15 13:53:11.000000000 +0200
 +++ libcddb.new/lib/cddb_conn.c        2010-11-28 21:03:39.012749230 +0100
-@@ -100,9 +100,17 @@
+@@ -100,9 +100,18 @@
          c->use_cache = CACHE_ON;
          /* construct cache dir '$HOME/[DEFAULT_CACHE]' */
          s = getenv("HOME");
@@ -17,6 +17,7 @@
 +        {
 +            c->cache_dir = NULL;
 +            c->use_cache = CACHE_OFF;
++            c->cache_read = FALSE;
 +        }
  
          /* use anonymous@localhost */