kernel: fix indention in validname0()
This commit is contained in:
parent
9585e9b7f8
commit
d275add1a8
1 changed files with 4 additions and 4 deletions
|
@ -1758,10 +1758,10 @@ validname0(char *aname, int slashok, int dup, uintptr pc)
|
|||
name += chartorune(&r, name);
|
||||
else{
|
||||
if(isfrog[c])
|
||||
if(!slashok || c!='/'){
|
||||
snprint(up->genbuf, sizeof(up->genbuf), "%s: %q", Ebadchar, aname);
|
||||
free(s);
|
||||
error(up->genbuf);
|
||||
if(!slashok || c!='/'){
|
||||
snprint(up->genbuf, sizeof(up->genbuf), "%s: %q", Ebadchar, aname);
|
||||
free(s);
|
||||
error(up->genbuf);
|
||||
}
|
||||
name++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue