X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=file.c;h=6b41d683b3dd903067fe5cbba51249354f726e2a;hb=a8436cadedf5893a456c422eec222eb87066c9c5;hp=a58e3924048dd0c96d2bc588d1420824b4fb94a5;hpb=41d24d850ba51f6449f1f8abcf265f180792ee46;p=uci.git diff --git a/file.c b/file.c index a58e392..6b41d68 100644 --- a/file.c +++ b/file.c @@ -442,15 +442,11 @@ void uci_file_commit(struct uci_context *ctx, struct uci_package **package, bool /* freed together with the uci_package */ path = NULL; - - /* check for updated history, flush */ - if (!uci_load_history(ctx, p, true)) - goto done; - } else { - /* flush history */ - if (!uci_load_history(ctx, NULL, true)) - goto done; } + + /* flush history */ + if (!uci_load_history(ctx, p, true)) + goto done; } rewind(f);