From dfca1336b8a8c1c69efa0b4c8dc22d6d3b5b9b00 Mon Sep 17 00:00:00 2001 From: tsoome Date: Sat, 7 Apr 2018 14:42:47 +0000 Subject: [PATCH] libsa: name is not used in dirmatch() Seems like variable 'name' is leftover. --- stand/libsa/cd9660read.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stand/libsa/cd9660read.c b/stand/libsa/cd9660read.c index 5f6319034d86..7998cfd30e61 100644 --- a/stand/libsa/cd9660read.c +++ b/stand/libsa/cd9660read.c @@ -174,7 +174,7 @@ dirmatch(const char *path, struct iso_directory_record *dp, int use_rrip, int lenskip) { size_t len; - const char *cp = NULL, *name = NULL; + const char *cp = NULL; int i, icase; if (use_rrip) @@ -187,7 +187,6 @@ dirmatch(const char *path, struct iso_directory_record *dp, int use_rrip, icase = 1; } else icase = 0; - name = cp; for (i = len; --i >= 0; path++, cp++) { if (!*path || *path == '/') break;