changeset 32781:93629a05a380

Handle mp_path_join failure in load_vob_subtitle.
author cboesch
date Mon, 07 Feb 2011 19:27:17 +0000
parents b3782b0b1d92
children a61e62388508
files sub/subreader.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sub/subreader.c	Sun Feb 06 19:01:52 2011 +0000
+++ b/sub/subreader.c	Mon Feb 07 19:27:17 2011 +0000
@@ -2194,6 +2194,8 @@
     mp_subdir = get_path("sub/");
     if (mp_subdir) {
         char *psub = mp_path_join(mp_subdir, mp_basename(name));
+        if (!psub)
+            goto out;
         add_f(psub, ifo, 0, spu);
         free(psub);
     }