chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
README: we need Linux 2.6.39
[elogind.git]
/
src
/
conf-parser.c
diff --git
a/src/conf-parser.c
b/src/conf-parser.c
index a99c70596b0a52eb6aeeb7bc78d5af6691a5f232..3bb430e375183499889243ee9ef14169e141123a 100644
(file)
--- a/
src/conf-parser.c
+++ b/
src/conf-parser.c
@@
-88,7
+88,8
@@
int config_item_perf_lookup(
else {
char *key;
- if (asprintf(&key, "%s.%s", section, lvalue) < 0)
+ key = join(section, ".", lvalue, NULL);
+ if (!key)
return -ENOMEM;
p = lookup(key, strlen(key));