Fix incorrect comparison code.

This commit is contained in:
Dianne Skoll
2024-12-16 19:33:41 -05:00
parent 2504b39be2
commit 8ebec9584c
+1 -1
View File
@@ -1005,7 +1005,7 @@ static int SetSysVarHelper(SysVar *v, Value *value)
if (v->type == STR_TYPE) {
/* If it's already the same, don't bother doing anything */
if (!strcmp(value->v.str, (char const *) v->value)) {
if (!strcmp(value->v.str, * (char const **) v->value)) {
DestroyValue(*value);
return OK;
}