river-options: fix setting null string options
This commit is contained in:
parent
7029a5cd3e
commit
1834bd4bd0
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ pub fn set(self: *Self, value: Value) !void {
|
|||
};
|
||||
} else if (self.value == .string and
|
||||
// TODO: std.mem needs a good way to compare optional sentinel pointers
|
||||
((self.value.string == null and value.string == null) or
|
||||
(((self.value.string == null) != (value.string == null)) or
|
||||
(self.value.string != null and value.string != null and
|
||||
std.cstr.cmp(self.value.string.?, value.string.?) != 0)))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue