aboutsummaryrefslogtreecommitdiff
path: root/libxsde/xsde/c
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-04-06 16:17:57 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-04-06 16:17:57 +0200
commit8eeebe8f6d91af4219fac3a29252a802ee58fe04 (patch)
treeb185f121277433df64227b617d130de332cf09e3 /libxsde/xsde/c
parent6e4d86618645c45d07c3a8113f4641cb9161309e (diff)
Check the bounds before checking the value in genx code
Also fix test makefile not to run polymorphic test when support for polymorphism is disabled.
Diffstat (limited to 'libxsde/xsde/c')
-rw-r--r--libxsde/xsde/c/genx/genx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libxsde/xsde/c/genx/genx.c b/libxsde/xsde/c/genx/genx.c
index f838f42..d856505 100644
--- a/libxsde/xsde/c/genx/genx.c
+++ b/libxsde/xsde/c/genx/genx.c
@@ -1529,7 +1529,7 @@ static genxStatus collectAttributeValue (genxWriter w, collector* value,
utf8 last = (utf8) start;
- while (*start && (end == NULL || start < end))
+ while (end != NULL ? start < end : *start)
{
int c = genxNextUnicodeChar(&start);