From: Youngjae Shin Date: Wed, 14 Jul 2021 23:39:43 +0000 (+0900) Subject: prevent assigning null to string X-Git-Tag: submit/tizen/20210715.063717^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_6.5;p=platform%2Fcore%2Fsystem%2Fmodes-plugins.git prevent assigning null to string Change-Id: I1f9c41c83f0cbddc42fc51d2767e431b5d9b4fb6 --- diff --git a/vconf/VconfStr.cpp b/vconf/VconfStr.cpp index 6c854e2..ad17d4a 100644 --- a/vconf/VconfStr.cpp +++ b/vconf/VconfStr.cpp @@ -113,7 +113,7 @@ void VconfStr::changedCB(keynode_t * node) } char *val = vconf_keynode_get_str(node); - if (cb && (val != requestVal)) + if (cb && val && (val != requestVal)) cb(cbData); }