summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Sidwell <andy@entai.co.uk>2008-07-31 15:50:25 +0000
committerAndrew Sidwell <andy@entai.co.uk>2008-07-31 15:50:25 +0000
commit0b9f5112b7caf1dfa8051252d6d4346d2f67a51c (patch)
tree3fe00e83907e8cd222b36e99755867b08b806348
parent682ae68041597e9327ccf1b09cfa6a2b016679fc (diff)
downloadlibhubbub-0b9f5112b7caf1dfa8051252d6d4346d2f67a51c.tar.gz
libhubbub-0b9f5112b7caf1dfa8051252d6d4346d2f67a51c.tar.bz2
Fix copy-and-paste error in previous commit.
svn path=/trunk/hubbub/; revision=4845
-rw-r--r--src/tokeniser/tokeniser.c2
-rw-r--r--test/Makefile5
2 files changed, 6 insertions, 1 deletions
diff --git a/src/tokeniser/tokeniser.c b/src/tokeniser/tokeniser.c
index c96863a..a5a5471 100644
--- a/src/tokeniser/tokeniser.c
+++ b/src/tokeniser/tokeniser.c
@@ -2744,7 +2744,7 @@ bool hubbub_tokeniser_handle_cdata_block(hubbub_tokeniser *tokeniser)
&len);
if (cptr == PARSERUTILS_INPUTSTREAM_OOD) {
- break;
+ return false;
}
if (tokeniser->context.chars.len > 0) {
diff --git a/test/Makefile b/test/Makefile
index bd1752d..8092460 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -38,6 +38,11 @@ CFLAGS := $(CFLAGS) -I$(TOP)/src/ -I$(d) \
-Wno-unused-parameter
LDFLAGS := $(LDFLAGS) `$(PKGCONFIG) $(PKGCONFIGFLAGS) --libs json`
+ifdef PROFILE
+ CFLAGS := $(CFLAGS) -pg -fno-omit-frame-pointer
+ LDFLAGS := $(LDFLAGS) -pg
+endif
+
# Tests
TESTS_$(d) := csdetect dict entities hubbub parser \
tokeniser tokeniser2 tokeniser3 tree tree2