fixed potential segfault in password handling
authorkramm <kramm>
Fri, 16 Jun 2006 07:02:19 +0000 (07:02 +0000)
committerkramm <kramm>
Fri, 16 Jun 2006 07:02:19 +0000 (07:02 +0000)
lib/xpdf/pdf.cc

index f2e13e9..a79f143 100644 (file)
@@ -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);