]> pilppa.org Git - uci.git/blobdiff - history.c
clean up uci_set
[uci.git] / history.c
index ae66f66c0f60ff8bcc4e54a283e83b48793ce252..1fe2900821a8d8a10715ff73eced4357a6d066ce 100644 (file)
--- a/history.c
+++ b/history.c
@@ -160,7 +160,8 @@ static void uci_parse_history_line(struct uci_context *ctx, struct uci_package *
                break;
        case UCI_CMD_ADD:
        case UCI_CMD_CHANGE:
-               UCI_INTERNAL(uci_set, ctx, p, ptr.section, ptr.option, ptr.value, &e);
+               UCI_INTERNAL(uci_set, ctx, &ptr);
+               e = ptr.last;
                if (!ptr.option && e && (cmd == UCI_CMD_ADD))
                        uci_to_section(e)->anonymous = true;
                break;