Fix an API argument that must be initialized.

[GB.POPPLER]
* BUG: Fix an API argument that must be initialized.
This commit is contained in:
gambas 2022-02-21 21:10:27 +01:00
parent 1794f4e072
commit 6318d80cfc

View file

@ -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))