changeset 17881:76b492415fd6

And 10L for me. Fix the forgoten enca_fd.
author albeu
date Thu, 16 Mar 2006 19:16:07 +0000
parents c0fa48581ccf
children 8dd9503e4d19
files subreader.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/subreader.c	Thu Mar 16 16:55:51 2006 +0000
+++ b/subreader.c	Thu Mar 16 19:16:07 2006 +0000
@@ -1086,7 +1086,7 @@
 		int free_cp_tmp = 0;
 		if (sscanf(sub_cp, "enca:%2s:%99s", enca_lang, enca_fallback) == 2
 		     || sscanf(sub_cp, "ENCA:%2s:%99s", enca_lang, enca_fallback) == 2) {
-		  if (enca_fd) {
+		  if (st) {
 		    cp_tmp = guess_cp(st, enca_lang, enca_fallback);
 		    free_cp_tmp = 1;
 		  } else {