kdesudo: assign KdeSudo::m_tmpName member to the temporary filepath, not a variable

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-10-23 18:37:41 +03:00
parent 79bb1f47d8
commit 4b95471273

View file

@ -137,7 +137,7 @@ KdeSudo::KdeSudo(const QString &icon, const QString &appname) :
// set the environment variables to reflect that.
// Default cookie-timeout is 60 sec. .
// 'man xauth' for more info on xauth cookies.
QString m_tmpName = KTemporaryFile::filePath("/tmp/kdesudo-XXXXXXXXXX-xauth");
m_tmpName = KTemporaryFile::filePath("/tmp/kdesudo-XXXXXXXXXX-xauth");
QByteArray disp = m_pCookie->display();