diff options
author | althekiller <althekiller@svn> | 2009-12-19 22:12:59 +0000 |
---|---|---|
committer | althekiller <althekiller@svn> | 2009-12-19 22:12:59 +0000 |
commit | 4ed44633951ededfe3236499b192d598fce987cf (patch) | |
tree | 5d3724e6e183ca953f4687ef0907e7c9162c0020 /xbmc/PowerManager.cpp | |
parent | 975e5c9aab7c7a9f9464acb2a8078fd24fbb03ed (diff) |
fixed: Potential NULL pointer access on linux if the system has dbus but no devkit or hal.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@25863 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'xbmc/PowerManager.cpp')
-rw-r--r-- | xbmc/PowerManager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xbmc/PowerManager.cpp b/xbmc/PowerManager.cpp index 89e8531891..b52012a7e8 100644 --- a/xbmc/PowerManager.cpp +++ b/xbmc/PowerManager.cpp @@ -74,6 +74,9 @@ void CPowerManager::Initialize() #ifdef HAS_HAL else m_instance = new CHALPowerSyscall(); +#else + else + m_instance = new CNULLPowerSyscall(); #endif #elif defined(_WIN32) m_instance = new CWin32PowerSyscall(); |