From: Jihoon Kim Date: Tue, 23 May 2023 05:10:21 +0000 (+0900) Subject: Fix defect detected by static analysis tool X-Git-Tag: accepted/tizen/unified/20230605.170314~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=982cc8201d624b15949ee0cae9a103e694a95389;p=platform%2Fcore%2Fuifw%2Fnlp.git Fix defect detected by static analysis tool assigned_pointer: Assigning value NULL to tmp_str here, but that stored value is overwritten before it can be used. Change-Id: I807901f7a6905e0ebb3d56515d50656e777564bd Signed-off-by: Jihoon Kim --- diff --git a/tests/src/nlp_service_unittests.cpp b/tests/src/nlp_service_unittests.cpp index 8bd3d1e..f751ee7 100644 --- a/tests/src/nlp_service_unittests.cpp +++ b/tests/src/nlp_service_unittests.cpp @@ -63,7 +63,6 @@ TEST_F(NlpServiceTest, utc_nlp_service_tokenize_p) tokens.push_back(result); cout << "token: '" << tmp_str << "'" << endl; free(tmp_str); - tmp_str = NULL; } }