diff options
author | Albert Astals Cid <aacid@kde.org> | 2008-05-31 23:57:31 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2008-05-31 23:57:31 +0200 |
commit | d21d7271fc74ab78cd157549138d0027cf179471 (patch) | |
tree | 77eda4874af02670f2f5761bb7c55d012e557d34 /utils | |
parent | 0480a788c0f25af1bc09360b599debb37f831e10 (diff) |
Make sure file exists before printing it
Diffstat (limited to 'utils')
-rw-r--r-- | utils/HtmlOutputDev.cc | 2 |
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: |