From 50925f28a060aa03339b79dc18ca6edc589fe11d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Aliste?= Date: Fri, 3 Aug 2012 20:54:00 -0400 Subject: [PATCH] glib: pass empty GooString instead of NULL when creating Doc without password. See https://bugs.freedesktop.org/show_bug.cgi?id=3498 --- glib/poppler-document.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/poppler-document.cc b/glib/poppler-document.cc index e626a2a..bd25329 100644 --- a/glib/poppler-document.cc +++ b/glib/poppler-document.cc @@ -141,7 +141,7 @@ poppler_password_to_latin1 (const gchar *password) GooString *password_g; if (!password) - return NULL; + return new GooString (); password_latin = g_convert(password, -1, "ISO-8859-1", "UTF-8", NULL, NULL, NULL); -- 1.7.10.4