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:
1879c8f
)
fix a stupid duplicate value checking bug (patch by Frédéric Moulins)
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 20 Jun 2008 17:22:25 +0000
(19:22 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 20 Jun 2008 17:22:25 +0000
(19:22 +0200)
list.c
patch
|
blob
|
history
diff --git
a/list.c
b/list.c
index
67bde39
..
b20ee71
100644
(file)
--- a/
list.c
+++ b/
list.c
@@
-315,6
+315,7
@@
int uci_set_element_value(struct uci_context *ctx, struct uci_element **element,
struct uci_element *e;
struct uci_package *p;
struct uci_section *s;
struct uci_element *e;
struct uci_package *p;
struct uci_section *s;
+ struct uci_option *o;
char *section;
char *option;
char *str;
char *section;
char *option;
char *str;
@@
-348,11
+349,12
@@
int uci_set_element_value(struct uci_context *ctx, struct uci_element **element,
case UCI_TYPE_OPTION:
UCI_ASSERT(ctx, value != NULL);
size = sizeof(struct uci_option);
case UCI_TYPE_OPTION:
UCI_ASSERT(ctx, value != NULL);
size = sizeof(struct uci_option);
- s = uci_to_option(e)->section;
+ o = uci_to_option(e);
+ s = o->section;
section = s->e.name;
section = s->e.name;
- option =
e->
name;
+ option =
o->e.
name;
/* matches the currently set value */
/* matches the currently set value */
- if (!strcmp(value,
e->nam
e))
+ if (!strcmp(value,
o->valu
e))
return 0;
break;
default:
return 0;
break;
default: