diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-10-04 23:29:02 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-10-04 23:29:02 -0500 |
commit | dc8f5371804c0006ebefc8c0f72be442e6311ce4 (patch) | |
tree | d5108f34d76bf9163659cd2c13201adffdb0614b /src/kernel/qmime.cpp | |
parent | 3a40adfa9157009fec206bfbc36f514bd08b5af8 (diff) | |
download | qt3-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.cpp | 3 |
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; } |