Merge pull request #72 from fangfufu/master

Fixed issue #71
This commit is contained in:
Fufu Fang 2021-08-05 00:36:47 +01:00 committed by GitHub
commit 45a1f23af4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ static Link *Link_new(const char *linkname, LinkType type)
static LinkType linkname_to_LinkType(const char *linkname)
{
/* The link name has to start with alphanumerical character */
if (!isalnum(linkname[0])) {
if (!isalnum(linkname[0]) && (linkname[0] != '%')) {
return LINK_INVALID;
}