summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2008-05-31 23:57:31 +0200
committerAlbert Astals Cid <aacid@kde.org>2008-05-31 23:57:31 +0200
commitd21d7271fc74ab78cd157549138d0027cf179471 (patch)
tree77eda4874af02670f2f5761bb7c55d012e557d34 /utils
parent0480a788c0f25af1bc09360b599debb37f831e10 (diff)
Make sure file exists before printing it
Diffstat (limited to 'utils')
-rw-r--r--utils/HtmlOutputDev.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/HtmlOutputDev.cc b/utils/HtmlOutputDev.cc
index 1fe960f0..dbcd3a63 100644
--- a/utils/HtmlOutputDev.cc
+++ b/utils/HtmlOutputDev.cc
@@ -1354,7 +1354,7 @@ GooString* HtmlOutputDev::getLinkDest(Link *link,Catalog* catalog){
file->append(GooString::fromInt(page));
}
}
- if (printCommands) printf("filename %s\n",file->getCString());
+ if (printCommands && file) printf("filename %s\n",file->getCString());
return file;
}
case actionURI: