From 0bc330c7e7cae16c977d32082f738739977b70b9 Mon Sep 17 00:00:00 2001 From: sungrae jo Date: Thu, 19 Mar 2020 18:04:05 +0900 Subject: [PATCH] Fixed invalid parameter for set command. Change-Id: Ide1af8f90ed47c78ff3c98d4354660d83484b9d1 Signed-off-by: sungrae jo --- common/vc_command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.7.4