[vlc-commits] Contrib: fix crash in CDDB on Windows

Jean-Baptiste Kempf git at videolan.org
Fri Jan 2 15:59:30 CET 2015


vlc/vlc-2.2 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Jan  2 15:56:00 2015 +0100| [5bbc070ca6d43e3d4111c616ac747c95021c3633] | committer: Jean-Baptiste Kempf

Contrib: fix crash in CDDB on Windows

Close #13465

(cherry picked from commit 86cb579544e1aa85f6563a3ae736eacc95519f0c)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=5bbc070ca6d43e3d4111c616ac747c95021c3633
---

 contrib/src/cddb/getenv-crash.patch |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/contrib/src/cddb/getenv-crash.patch b/contrib/src/cddb/getenv-crash.patch
index 48888ef..577db8f 100644
--- a/contrib/src/cddb/getenv-crash.patch
+++ b/contrib/src/cddb/getenv-crash.patch
@@ -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 at localhost */



More information about the vlc-commits mailing list