Skip to content

Commit c321ee6

Browse files
committed
Initialize the MythUIImage filename correctly
Fixes #9634. Fixes #9708. Refs #9547. If the filename does not start with "/", "http://", "https://" or "ftp://", then the actual filename loaded is uninitialized. It can be any random crap on the stack. I'm honestly surprised this worked at all :) This may fix things for #9547 as well, and should be tested with that scenario too. (cherry picked from commit 2c7735e)
1 parent 9375ffb commit c321ee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mythtv/libs/libmythui/mythuiimage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class ImageLoadThread : public QRunnable
8484

8585
void run()
8686
{
87-
QString tmpFilename;
87+
QString tmpFilename = m_filename;
8888
if ((m_filename.startsWith("/")) ||
8989
(m_filename.startsWith("http://")) ||
9090
(m_filename.startsWith("https://")) ||

0 commit comments

Comments
 (0)