Fixed coverity warning for class CellularUtil.

pull/6496/head
Teppo Järvelin 2018-03-20 16:24:43 +02:00
parent 12b0bc4a36
commit fa61f094db
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ void separate_ip_addresses(char* orig, char* ip, size_t ip_size, char* ip2, size
if (ip2 && (ip2_size > strlen(temp))) { if (ip2 && (ip2_size > strlen(temp))) {
memcpy(ip2, temp, strlen(temp)); memcpy(ip2, temp, strlen(temp));
ip2[strlen(temp)] = '\0'; ip2[strlen(temp)] = '\0';
} else { } else if (ip2) {
ip2[0] = '\0'; ip2[0] = '\0';
} }
} else { } else {