uci: optimize update option in uci_set
authorJan Venekamp <jan@venekamp.net>
Sun, 20 Nov 2022 01:08:22 +0000 (02:08 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 4 Mar 2023 18:39:32 +0000 (19:39 +0100)
commit7e01d66d7bec5f9e3694dcad25c472327a0ff352
tree0c51a3bf2ea18efd0448f6191a22d6f193204c53
parentb7ceda9a2fbdd0224c7bf742524ddc8c19c180e9
uci: optimize update option in uci_set

Optimize for the case when there is no need to reallocate memory when
updating an option in uci_set.

Signed-off-by: Jan Venekamp <jan@venekamp.net>
list.c