comparison libpurple/protocols/jabber/parser.c @ 23427:76dbcdd86fe2

Whitespace fix
author Evan Schoenberg <evan.s@dreskin.net>
date Fri, 04 Jul 2008 16:14:48 +0000
parents ce361cc8e43b
children 08c50482d5a2
comparison
equal deleted inserted replaced
23426:ce361cc8e43b 23427:76dbcdd86fe2
199 199
200 void jabber_parser_process(JabberStream *js, const char *buf, int len) 200 void jabber_parser_process(JabberStream *js, const char *buf, int len)
201 { 201 {
202 int ret; 202 int ret;
203 203
204 if (js->context == NULL) { 204 if (js->context == NULL) {
205 /* libxml inconsistently starts parsing on creating the 205 /* libxml inconsistently starts parsing on creating the
206 * parser, so do a ParseChunk right afterwards to force it. */ 206 * parser, so do a ParseChunk right afterwards to force it. */
207 js->context = xmlCreatePushParserCtxt(&jabber_parser_libxml, js, buf, len, NULL); 207 js->context = xmlCreatePushParserCtxt(&jabber_parser_libxml, js, buf, len, NULL);
208 xmlParseChunk(js->context, "", 0, 0); 208 xmlParseChunk(js->context, "", 0, 0);
209 } else if ((ret = xmlParseChunk(js->context, buf, len, 0)) != XML_ERR_OK) { 209 } else if ((ret = xmlParseChunk(js->context, buf, len, 0)) != XML_ERR_OK) {