summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Roche <roche@httrack.com>2016-09-26 21:11:09 +0200
committerXavier Roche <roche@httrack.com>2016-09-26 21:11:09 +0200
commitdb336d2304900463d2dea4e42cea18aff3b35a28 (patch)
tree1b588a246c6ac755ca05e98cbe59905e5176d40d
parenta9a7aa6c523001a5fbedde801a536f13c417aed6 (diff)
Fixed weird condition which anyway does what we wanted (spotted by dcb314)
-rw-r--r--src/htsparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/htsparse.c b/src/htsparse.c
index b7a5c1c..1746429 100644
--- a/src/htsparse.c
+++ b/src/htsparse.c
@@ -699,7 +699,7 @@ int htsparse(htsmoduleStruct * str, htsmoduleStructExtended * stre) {
break;
case 1:
// And the closing comment info tag
- if ((p = strfield(html, "</html") != 0)) {
+ if ((p = strfield(html, "</html")) != 0) {
emited_footer++;
} else {
p = 0;