mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
Operate: commit or revert only if modified UCI list is not empty
This commit is contained in:
parent
165deef400
commit
293474bf1f
1 changed files with 2 additions and 1 deletions
|
|
@ -47,7 +47,8 @@ void bbfdm_operate_cmd(bbfdm_data_t *data, void *output)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Commit or Revert changes in uci files */
|
/* Commit or Revert changes in uci files */
|
||||||
if (data->bbf_ctx.modified_uci_head != NULL) {
|
if (data->bbf_ctx.modified_uci_head != NULL &&
|
||||||
|
!list_empty(data->bbf_ctx.modified_uci_head)) {
|
||||||
struct dm_modified_uci *m;
|
struct dm_modified_uci *m;
|
||||||
struct blob_buf bb = {0};
|
struct blob_buf bb = {0};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue