mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
is_identifier characters
This commit is contained in:
parent
b0388a4012
commit
cbad7caa68
@ -49,7 +49,7 @@ struct line_c {
|
||||
static int is_identifier(const char *str, int len)
|
||||
{
|
||||
while(len--) {
|
||||
if (!isalnum(*str) || *str != '_')
|
||||
if (!isalnum(*str) && *str != '_')
|
||||
return 0;
|
||||
str++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user