From: fennecdjay Date: Tue, 15 Oct 2019 23:43:18 +0000 (+0200) Subject: :art: Clean name valid X-Git-Tag: nightly~2126 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=1ca54a3f7f908968c883f98d986ac70e9fe17df9;p=gwion.git :art: Clean name valid --- 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) }