commit | 7c4a229b0e6d6785f444ffa71ec7f781abd98635 | [log] [tgz] |
---|---|---|
author | Johan Hedberg <johan.hedberg@intel.com> | Fri Mar 22 18:03:21 2019 +0200 |
committer | Johan Hedberg <johan.hedberg@gmail.com> | Sat Mar 23 22:47:00 2019 +0200 |
tree | f317b9c93a5bc52df8a525aeca4b5eebe6d1137b | |
parent | 58b17ed0e5b444877d2b2f079b866f9249dee6b9 [diff] |
settings: Fix check for duplicate when new value is smaller The code for checking duplicates in the existing settings store was incorrectly identifying a new value with the same initial content but shorter length as a duplicate. Fix this by doing an early check on a new vs old length mismatch, and immediately flag this as not a duplicate. Fixes #14840 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>