summaryrefslogtreecommitdiff
path: root/poppler
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2006-05-14 16:11:54 +0000
committerAlbert Astals Cid <aacid@kde.org>2006-05-14 16:11:54 +0000
commit3c9a5f37704781c9a51e72edd18451870452b9a7 (patch)
tree918f2abfbf3c04ddd648100cec21da478e4cd62e /poppler
parent436f578fe762e8ceccce95a0f2003406527dde64 (diff)
* poppler/FontInfo.cc: Fix possible crash, half patch
by Kouhei Sutou <kou@cozmixng.org>
Diffstat (limited to 'poppler')
-rw-r--r--poppler/FontInfo.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/poppler/FontInfo.cc b/poppler/FontInfo.cc
index 84221280..f0d4df02 100644
--- a/poppler/FontInfo.cc
+++ b/poppler/FontInfo.cc
@@ -197,8 +197,8 @@ FontInfo::FontInfo(GfxFont *font, PDFDoc *doc) {
}
FontInfo::FontInfo(FontInfo& f) {
- name = f.name->copy();
- file = f.file->copy();
+ name = f.name ? f.name->copy() : NULL;
+ file = f.file ? f.file->copy() : NULL;
type = f.type;
emb = f.emb;
subset = f.subset;