From 0f0d8ffa3bcce11ff2c2fc95730148bc4ac3d849 Mon Sep 17 00:00:00 2001 From: kramm Date: Fri, 16 Jun 2006 07:02:19 +0000 Subject: [PATCH] fixed potential segfault in password handling --- lib/xpdf/pdf.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/xpdf/pdf.cc b/lib/xpdf/pdf.cc index f2e13e9..a79f143 100644 --- a/lib/xpdf/pdf.cc +++ b/lib/xpdf/pdf.cc @@ -249,7 +249,7 @@ gfxdocument_t*pdf_open(char*filename) pdf_doc_internal_t*i= (pdf_doc_internal_t*)malloc(sizeof(pdf_doc_internal_t)); memset(i, 0, sizeof(pdf_doc_internal_t)); pdf_doc->internal = i; - char*userPassword; + char*userPassword=0; filename = strdup(filename); -- 1.7.10.4