projects
/
project
/
uci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
021fd65
)
list: remove unncessary increment of n_section (FS#1182)
author
Hans Dedecker
<dedeckeh@gmail.com>
Thu, 21 Dec 2017 10:56:32 +0000
(11:56 +0100)
committer
Hans Dedecker
<hans.dedecker@technicolor.com>
Fri, 22 Dec 2017 09:16:55 +0000
(10:16 +0100)
The package n_section counter is already incremented in uci_alloc_section;
so no need to increment it again in uci_fixup_section.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
list.c
patch
|
blob
|
history
diff --git
a/list.c
b/list.c
index e78012b978939349c0c419737b7c0fa5f09ddec3..0347138cbbc19bc9a5ad5c6231ee528f2492aab0 100644
(file)
--- a/
list.c
+++ b/
list.c
@@
-175,7
+175,7
@@
static void uci_fixup_section(struct uci_context *ctx, struct uci_section *s)
break;
}
}
- sprintf(buf, "cfg%02x%04x",
++
s->package->n_section, hash % (1 << 16));
+ sprintf(buf, "cfg%02x%04x", s->package->n_section, hash % (1 << 16));
s->e.name = uci_strdup(ctx, buf);
}