From dc8f5371804c0006ebefc8c0f72be442e6311ce4 Mon Sep 17 00:00:00 2001 From: Timothy Pearson <kb9vqf@pearsoncomputing.net> Date: Sat, 4 Oct 2014 23:29:02 -0500 Subject: Fix undefined behaviour in TQClipboardWatcher::format This relates to Bug 1820 --- src/kernel/qmime.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/kernel/qmime.cpp') 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; } -- cgit v1.2.1