lint warnings

This commit is contained in:
proddy
2025-01-26 13:30:53 +01:00
parent 20b978c46c
commit 2620f56e0d
4 changed files with 11 additions and 7 deletions

View File

@@ -151,7 +151,7 @@ class EMSdevice {
}
void has_update(char * value, const char * newvalue, size_t len) {
if (strcmp(value, newvalue) != 0) {
if (value && strcmp(value, newvalue) != 0) {
strlcpy(value, newvalue, len);
has_update_ = true;
publish_value(value);