From afec180955199426c7bcb0467dfec6afd0b49164 Mon Sep 17 00:00:00 2001
From: Nicolas Dumazet <nicolas.dumazet@nexedi.com>
Date: Thu, 6 May 2010 09:16:45 +0000
Subject: [PATCH] unbreak code if first chunk is bigger than size_lines

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35048 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5SyncML/Signature.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/product/ERP5SyncML/Signature.py b/product/ERP5SyncML/Signature.py
index 5a4d1d4adc..527204198c 100644
--- a/product/ERP5SyncML/Signature.py
+++ b/product/ERP5SyncML/Signature.py
@@ -389,7 +389,9 @@ class Signature(Folder, SyncCode, File):
     chunk = list()
     chunk.append(self.partial_xml.data)
     size = chunk[0].count('\n')
-    current = next = self.partial_xml.next
+
+    current = self.partial_xml
+    next = current.next
     while size < size_lines and next is not None:
       current = next
       size += current.data.count('\n')
-- 
2.30.9