[Libreoffice-commits] .: solenv/gdb
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Jan 28 03:39:15 PST 2013
solenv/gdb/libreoffice/util/string.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 179c9c4f78c6cd7d0556cf85b36c586323331c8d
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Jan 28 12:38:42 2013 +0100
Only call data()/length() when self is valid()
Change-Id: Icd9c12a10d2183a5159a3aa7a70e90494e8a8183
diff --git a/solenv/gdb/libreoffice/util/string.py b/solenv/gdb/libreoffice/util/string.py
index 5ad0e8d..34cabde 100644
--- a/solenv/gdb/libreoffice/util/string.py
+++ b/solenv/gdb/libreoffice/util/string.py
@@ -41,9 +41,9 @@ class StringPrinterHelper(object):
self.encoding = encoding
def to_string(self):
- data = self.data()
- len = self.length()
if self.valid():
+ data = self.data()
+ len = self.length()
return self.make_string(data, self.encoding, len)
else:
return "unintialized %s" % self.typename
More information about the Libreoffice-commits
mailing list