changeset 25442:0d0f20dd32bf

Remove redundant code since unrarlib was removed.
author ulion
date Thu, 20 Dec 2007 10:40:30 +0000
parents 3744685df066
children 6ad285d014bf
files vobsub.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/vobsub.c	Thu Dec 20 10:29:44 2007 +0000
+++ b/vobsub.c	Thu Dec 20 10:40:30 2007 +0000
@@ -58,7 +58,7 @@
     if (stream->file == NULL) {
 	char *rar_filename;
 	const char *p;
-	int rc = 0;
+	int rc;
 	/* Guess the RAR archive filename */
 	rar_filename = NULL;
 	p = strrchr(filename, '.');
@@ -92,9 +92,8 @@
 	    /* There is no matching filename in the archive. However, sometimes
 	     * the files we are looking for have been given arbitrary names in the archive.
 	     * Let's look for a file with an exact match in the extension only. */
-	    int i, num_files = -1, name_len;
+	    int i, num_files, name_len;
 	    ArchiveList_struct *list, *lp;
-	    if (num_files <= 0)
 	    num_files = unrar_exec_list(rar_filename, &list);
 	    if (num_files > 0) {
 		char *demanded_ext;