X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/1eb15b505ba1d7ea5a18363c4b7b137f2e9f6d01..2e4fddca3af59c20942ff8a96e0b37ea5c23d049:/StringPool.cpp

diff --git a/StringPool.cpp b/StringPool.cpp
index ec58591..d067d59 100644
--- a/StringPool.cpp
+++ b/StringPool.cpp
@@ -25,8 +25,12 @@ void printStringPool(const ResStringPool* pool)
     const size_t NS = pool->size();
     for (size_t s=0; s<NS; s++) {
         size_t len;
-        printf("String #%d: %s\n", s,
-                String8(pool->stringAt(s, &len)).string());
+        const char *str = (const char*)pool->string8At(s, &len);
+        if (str == NULL) {
+            str = String8(pool->stringAt(s, &len)).string();
+        }
+
+        printf("String #%zd: %s\n", s, str);
     }
 }