Skip to content

Commit 35c2b60

Browse files
author
Antti Kauppila
committed
Coverity fix for ATHAndler
Unneeded NULL check removed
1 parent 0c227a0 commit 35c2b60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/cellular/framework/AT/ATHandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1339,7 +1339,7 @@ nsapi_error_t ATHandler::at_cmd_str(const char *cmd, const char *cmd_chr, char *
13391339

13401340
cmd_stop();
13411341

1342-
if (cmd && strlen(cmd) > 0) {
1342+
if (strlen(cmd) > 0) {
13431343
memcpy(_cmd_buffer, cmd, strlen(cmd));
13441344
_cmd_buffer[strlen(cmd)] = ':';
13451345
_cmd_buffer[strlen(cmd) + 1] = '\0';

0 commit comments

Comments
 (0)