From 1463ca82890303129a402ef1981ec8cd1fc597a4 Mon Sep 17 00:00:00 2001
From: Dimitur Kirov <dkirov@gmail.com>
Date: Tue, 19 Sep 2006 12:50:33 +0000
Subject: [PATCH] merge from zeroconf branch (fixed bug: xml error when we get
 CDATA after  initial stream header)

---
 src/common/xmpp/simplexml.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/xmpp/simplexml.py b/src/common/xmpp/simplexml.py
index 0057b472f5..76c70651f8 100644
--- a/src/common/xmpp/simplexml.py
+++ b/src/common/xmpp/simplexml.py
@@ -362,7 +362,7 @@ class NodeBuilder:
 		if self.last_is_data:
 			if self.data_buffer:
 				self.data_buffer.append(data)
-		else:
+		elif self._ptr:
 			self.data_buffer = [data]
 			self.last_is_data = 1
 	
-- 
GitLab