# HG changeset patch # User albeu # Date 1142536567 0 # Node ID 76b492415fd6f92389b87856bd097d0ffff2ebb8 # Parent c0fa48581ccfe1d36b174f078bd0c708a456a7f1 And 10L for me. Fix the forgoten enca_fd. diff -r c0fa48581ccf -r 76b492415fd6 subreader.c --- 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 {