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;