Coverity fix for ATHAndler

Unneeded NULL check removed
pull/12079/head
Antti Kauppila 2019-12-11 09:25:29 +02:00
parent 0c227a0756
commit 35c2b60800
1 changed files with 1 additions and 1 deletions

View File

@ -1339,7 +1339,7 @@ nsapi_error_t ATHandler::at_cmd_str(const char *cmd, const char *cmd_chr, char *
cmd_stop();
if (cmd && strlen(cmd) > 0) {
if (strlen(cmd) > 0) {
memcpy(_cmd_buffer, cmd, strlen(cmd));
_cmd_buffer[strlen(cmd)] = ':';
_cmd_buffer[strlen(cmd) + 1] = '\0';