From: sungrae jo Date: Thu, 19 Mar 2020 09:04:05 +0000 (+0900) Subject: Fixed invalid parameter for set command. X-Git-Tag: submit/tizen/20200320.001537~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0bc330c7e7cae16c977d32082f738739977b70b9;p=platform%2Fcore%2Fuifw%2Fvoice-control.git Fixed invalid parameter for set command. Change-Id: Ide1af8f90ed47c78ff3c98d4354660d83484b9d1 Signed-off-by: sungrae jo --- diff --git a/common/vc_command.c b/common/vc_command.c index 6d0b546..665f8d9 100644 --- a/common/vc_command.c +++ b/common/vc_command.c @@ -885,7 +885,7 @@ int vc_cmd_set_command(vc_cmd_h vc_command, const char* command) return VC_ERROR_PERMISSION_DENIED; } - if (NULL == vc_command) { + if (NULL == vc_command || NULL == command) { SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Invalid parameter "); return VC_ERROR_INVALID_PARAMETER; }