uci: use correct sort index when reordering sections
authorJo-Philipp Wich <jo@mein.io>
Thu, 15 Mar 2018 23:42:18 +0000 (00:42 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sat, 28 Apr 2018 16:23:59 +0000 (18:23 +0200)
commit92d0d757161d1950f11abb6e679bfdafa7cbfe85
tree5a802f07352be2698807a30c43ed55150024e334
parent66a9bad1a73bc33c4c5a9a00de8dc8ad35bdfaf1
uci: use correct sort index when reordering sections

When reordering, the section indexes must be 0-based while the current
implementation incorrectly numbers starting with 1.

Fix this by start numbering ther sections with index 0.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
uci.c