fix gcc 6.1.1 compiler warn misleading-indentation

This commit is contained in:
Glenn Strauss 2016-07-12 20:19:32 -04:00
parent c1af146a6e
commit a714f4f720
1 changed files with 6 additions and 3 deletions

View File

@ -1173,11 +1173,14 @@ static int mod_ssi_stmt_len(const char *s, const int len) {
if (!sq && !dq && n+2 < len && s[n+1] == '-' && s[n+2] == '>') return n+3; /* found end of stmt */
break;
case '"':
if (!sq && (!dq || !bs)) dq = !dq; break;
if (!sq && (!dq || !bs)) dq = !dq;
break;
case '\'':
if (!dq && (!sq || !bs)) sq = !sq; break;
if (!dq && (!sq || !bs)) sq = !sq;
break;
case '\\':
if (sq || dq) bs = !bs; break;
if (sq || dq) bs = !bs;
break;
}
}
return 0; /* incomplete directive "<!--#...-->" */