summaryrefslogtreecommitdiffstats
path: root/src/kernel/qmime.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-04 23:29:02 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-04 23:29:02 -0500
commitdc8f5371804c0006ebefc8c0f72be442e6311ce4 (patch)
treed5108f34d76bf9163659cd2c13201adffdb0614b /src/kernel/qmime.cpp
parent3a40adfa9157009fec206bfbc36f514bd08b5af8 (diff)
downloadqt3-dc8f5371804c0006ebefc8c0f72be442e6311ce4.tar.gz
qt3-dc8f5371804c0006ebefc8c0f72be442e6311ce4.zip
Fix undefined behaviour in TQClipboardWatcher::format
This relates to Bug 1820
Diffstat (limited to 'src/kernel/qmime.cpp')
-rw-r--r--src/kernel/qmime.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/qmime.cpp b/src/kernel/qmime.cpp
index e50757d..d424b2e 100644
--- a/src/kernel/qmime.cpp
+++ b/src/kernel/qmime.cpp
@@ -139,8 +139,9 @@ bool QMimeSource::provides(const char* mimeType) const
{
const char* fmt;
for (int i=0; (fmt = format(i)); i++) {
- if ( !qstricmp(mimeType,fmt) )
+ if ( !qstricmp(mimeType,fmt) ) {
return TRUE;
+ }
}
return FALSE;
}