Browse Source

fix gcc 6.1.1 compiler warn misleading-indentation

personal/stbuehler/mod-csrf-old
Glenn Strauss 5 years ago
parent
commit
a714f4f720
  1. 9
      src/mod_ssi.c

9
src/mod_ssi.c

@ -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 "<!--#...-->" */

Loading…
Cancel
Save