diff options
author | monty@mishka.local <> | 2004-10-20 01:28:42 +0300 |
---|---|---|
committer | monty@mishka.local <> | 2004-10-20 01:28:42 +0300 |
commit | 04c23808a856bd8c4425d52419592d58d9bc5f35 (patch) | |
tree | 1919e7f3a6a68e36dbbcf1dd8b6cd8729a975e36 /strings/xml.c | |
parent | 57a85986ac46550dcf7ced4cb50111efe2a6e0ad (diff) | |
download | mariadb-git-04c23808a856bd8c4425d52419592d58d9bc5f35.tar.gz |
Review of all code pushed since last review
Simple optimzations and cleanups
Removed compiler warnings and fixed portability issues
Added client functions 'mysql_embedded()' to allow client to check if we are using embedded server
Fixes for purify
Diffstat (limited to 'strings/xml.c')
-rw-r--r-- | strings/xml.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/strings/xml.c b/strings/xml.c index 7d7839e1603..6ba52ea41a8 100644 --- a/strings/xml.c +++ b/strings/xml.c @@ -81,10 +81,11 @@ static int my_xml_scan(MY_XML_PARSER *p,MY_XML_ATTR *a) a->beg=p->cur; a->end=p->cur; - if (!memcmp(p->cur,"<!--",4)) + if (!bcmp(p->cur,"<!--",4)) { - for( ; (p->cur < p->end) && memcmp(p->cur, "-->", 3); p->cur++); - if(!memcmp(p->cur, "-->", 3)) + for( ; (p->cur < p->end) && bcmp(p->cur, "-->", 3); p->cur++) + {} + if (!bcmp(p->cur, "-->", 3)) p->cur+=3; a->end=p->cur; lex=MY_XML_COMMENT; |