From 6318d80cfc3827781878631e4c6360585534a1da Mon Sep 17 00:00:00 2001 From: gambas Date: Mon, 21 Feb 2022 21:10:27 +0100 Subject: [PATCH] Fix an API argument that must be initialized. [GB.POPPLER] * BUG: Fix an API argument that must be initialized. --- gb.poppler/src/c_pdf_document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gb.poppler/src/c_pdf_document.cpp b/gb.poppler/src/c_pdf_document.cpp index 1e444f25d..9755318ef 100644 --- a/gb.poppler/src/c_pdf_document.cpp +++ b/gb.poppler/src/c_pdf_document.cpp @@ -85,7 +85,7 @@ static GEOM_RECTF *make_rect(PopplerRectangle *rect) BEGIN_METHOD(PdfDocument_new, GB_STRING path; GB_STRING password) const char *password; - GError *error; + GError *error = NULL; std::string rpasswd; if (GB.LoadFile(STRING(path), LENGTH(path), &THIS->buffer, &THIS->length))