From 1ca54a3f7f908968c883f98d986ac70e9fe17df9 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Wed, 16 Oct 2019 01:43:18 +0200 Subject: [PATCH] :art: Clean name valid --- src/lib/import.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/import.c b/src/lib/import.c index 8baf4ab0..f19215b2 100644 --- a/src/lib/import.c +++ b/src/lib/import.c @@ -96,7 +96,7 @@ ANN static m_bool name_valid(const Gwi gwi, const m_str a) { if(c == '<') { if(a[++i] != '~') GWI_ERR_B(_("illegal templating in name '%s'."), a) - lvl++; + ++lvl; ++i; continue; } else if(c == ',') { @@ -105,7 +105,7 @@ ANN static m_bool name_valid(const Gwi gwi, const m_str a) { } else if(c == '~') { if(!lvl || a[++i] != '>') GWI_ERR_B(_("illegal templating in name '%s'."), a) - lvl--; + --lvl; } else GWI_ERR_B(_("illegal character '%c' in name '%s'."), c, a) } -- 2.43.0