aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/libshiboken/threadstatesaver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/libshiboken/threadstatesaver.cpp')
-rw-r--r--sources/shiboken2/libshiboken/threadstatesaver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken2/libshiboken/threadstatesaver.cpp b/sources/shiboken2/libshiboken/threadstatesaver.cpp
index d64c01f86..0d19528f9 100644
--- a/sources/shiboken2/libshiboken/threadstatesaver.cpp
+++ b/sources/shiboken2/libshiboken/threadstatesaver.cpp
@@ -59,7 +59,7 @@ void ThreadStateSaver::restore()
{
if (m_threadState) {
PyEval_RestoreThread(m_threadState);
- m_threadState = 0;
+ m_threadState = nullptr;
}
}