Commit 5bbc070c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Contrib: fix crash in CDDB on Windows

Close #13465

(cherry picked from commit 86cb579544e1aa85f6563a3ae736eacc95519f0c)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent a44d02c5
--- 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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment