diff --git a/frameworks/native/miscdevice/include/vibrator_service_client.h b/frameworks/native/miscdevice/include/vibrator_service_client.h index 207b59bf80dc41d366849b4eb42b6fe6796d659d..b3eb03760c34aa86573dd15f77dc19a7effda322 100755 --- a/frameworks/native/miscdevice/include/vibrator_service_client.h +++ b/frameworks/native/miscdevice/include/vibrator_service_client.h @@ -38,8 +38,8 @@ public: private: int32_t InitServiceClient(); - sptr serviceDeathObserver_; - sptr miscdeviceProxy_; + sptr serviceDeathObserver_ = nullptr; + sptr miscdeviceProxy_ = nullptr; std::mutex clientMutex_; }; } // namespace Sensors