projects
/
oweals
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97fb86a
)
fix service name pointer
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 16 Dec 2012 18:41:58 +0000
(19:41 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 16 Dec 2012 18:41:58 +0000
(19:41 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
service.c
patch
|
blob
|
history
diff --git
a/service.c
b/service.c
index db11200c0237b1547a1399d5bd84bc153fdbd931..27ed8c0a5ca3cad7485c8e807569f3eb39544bd8 100644
(file)
--- a/
service.c
+++ b/
service.c
@@
-57,7
+57,7
@@
service_alloc(const char *name)
s = calloc(1, sizeof(*s) + strlen(name) + 1);
- new_name = (char *)
s + 1
;
+ new_name = (char *)
(s + 1)
;
strcpy(new_name, name);
vlist_init(&s->instances, avl_strcmp, service_instance_update);