mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
libsa: name is not used in dirmatch()
Seems like variable 'name' is leftover.
This commit is contained in:
parent
213f235f49
commit
b1e0bc1210
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue