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

Optimize for the case when there is no need to update the section and
the case there is no need to reallocate memory when updating a section
in uci_set.

Signed-off-by: Jan Venekamp <jan@venekamp.net>
list.c
tests/shunit2/tests.d/090_cli_options