projects
/
project
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a7d365
)
fix stale vlist/avl key for instance names
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 20 Dec 2012 16:43:47 +0000
(17:43 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 20 Dec 2012 16:44:18 +0000
(17:44 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
service.c
patch
|
blob
|
history
diff --git
a/service.c
b/service.c
index 27ed8c0a5ca3cad7485c8e807569f3eb39544bd8..64ef3e8ab871b1836ab0c66632fb15177883b9df 100644
(file)
--- a/
service.c
+++ b/
service.c
@@
-10,7
+10,6
@@
static void
service_instance_add(struct service *s, struct blob_attr *attr)
{
struct service_instance *in;
- const char *name = blobmsg_name(attr);
if (blobmsg_type(attr) != BLOBMSG_TYPE_TABLE)
return;
@@
-20,7
+19,7
@@
service_instance_add(struct service *s, struct blob_attr *attr)
return;
instance_init(in, s, attr);
- vlist_add(&s->instances, &in->node, (void *) name);
+ vlist_add(&s->instances, &in->node, (void *)
in->
name);
}
static void