summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/opie-eye/slave/png_slave.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/graphics/opie-eye/slave/png_slave.cpp b/noncore/graphics/opie-eye/slave/png_slave.cpp
index 86e1cdc..21555b4 100644
--- a/noncore/graphics/opie-eye/slave/png_slave.cpp
+++ b/noncore/graphics/opie-eye/slave/png_slave.cpp
@@ -63,13 +63,14 @@ static const char* interlaceModes[] = {
63}; 63};
64 64
65 65
66static void read_comment( const QString& inf, 66static void read_comment( const QString& inf,
67 bool readComments, QString& str ) { 67 bool readComments, QString& str ) {
68 QFile f(inf); 68 QFile f(inf);
69 f.open(IO_ReadOnly); 69 if (!f.exists()) return;
70 if (!f.open(IO_ReadOnly)) return;
70 71
71 if (f.size() < 26) return; 72 if (f.size() < 26) return;
72 // the technical group will be read from the first 26 bytes. If the file 73 // the technical group will be read from the first 26 bytes. If the file
73 // is smaller, we can't even read this. 74 // is smaller, we can't even read this.
74 75
75 uchar *data = new uchar[f.size()+1]; 76 uchar *data = new uchar[f.size()+1];