applied getinfo_crash.patch and info_only.patch by Ricardo Pedroso
[swftools.git] / lib / pdf / pdf.cc
index 5cada51..1a6969d 100644 (file)
@@ -390,7 +390,7 @@ char* pdf_doc_getinfo(gfxdocument_t*doc, const char*name)
         sprintf(buf, "%.1f", i->doc->getPDFVersion());
         return strdup(buf);
     }
-    return 0;
+    return strdup("");
 }