Use g_ascii_isspace instead of isspace because the later is slower and we

only need to deal with ascii.
This commit is contained in:
Benoît Dejean
2016-10-13 19:33:19 +02:00
parent 7afc81f99d
commit 01a56e2e30
2 changed files with 2 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ G_BEGIN_DECLS
static inline char*
next_token(const char *p)
{
while (isspace(*p)) p++;
while (g_ascii_isspace(*p)) p++;
return (char*) p;
}