changeset 343:a8d1de20346f src

check that dvdcss_version is not NULL before dereferencing it; patch by Erik Hovland - erik hovland org
author nicodvb
date Sun, 20 Apr 2008 08:18:52 +0000
parents 83758bfacd4c
children fb2fbd4cfbf6
files dvdread/dvd_input.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dvdread/dvd_input.c	Sat Apr 19 10:35:25 2008 +0000
+++ b/dvdread/dvd_input.c	Sun Apr 20 08:18:52 2008 +0000
@@ -341,7 +341,7 @@
     fprintf(stderr, "DVDCSS_VERBOSE %s\n", psz_verbose);
     */
     fprintf(stderr, "libdvdread: Using libdvdcss version %s for DVD access\n",
-	    *dvdcss_version);
+	    dvdcss_version ? *dvdcss_version : "");
     
     /* libdvdcss wrapper functions */
     dvdinput_open  = css_open;