fixed a bug of setting the tre option wrongly in qse_awk_buildrex()

This commit is contained in:
hyung-hwan 2020-01-01 14:05:00 +00:00
parent 81676bb46f
commit cbfe6bf628

View File

@ -773,6 +773,8 @@ int qse_awk_buildrex (
qse_tre_t* itre = QSE_NULL;
int opt = QSE_TRE_EXTENDED;
if (!(awk->opt.trait & QSE_AWK_REXBOUND)) opt |= QSE_TRE_NOBOUND;
if (code)
{
tre = qse_tre_open(qse_awk_getmmgr(awk), 0);
@ -782,8 +784,6 @@ int qse_awk_buildrex (
return -1;
}
if (!(awk->opt.trait & QSE_AWK_REXBOUND)) opt |= QSE_TRE_NOBOUND;
if (qse_tre_compx (tre, ptn, len, QSE_NULL, opt) <= -1)
{
#if 0 /* TODO */