chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sd-rtnl: link - allow setting the change mask
[elogind.git]
/
src
/
shared
/
conf-parser.h
diff --git
a/src/shared/conf-parser.h
b/src/shared/conf-parser.h
index 42602b3b085bae7c8b2a822409ef48a80e48bf5a..2d5aa31c3b244056e141f6c4aa72e624fbcafc14 100644
(file)
--- a/
src/shared/conf-parser.h
+++ b/
src/shared/conf-parser.h
@@
-202,7
+202,7
@@
int log_syntax_internal(const char *unit, int level,
continue; \
\
*(xs + i) = x; \
- xs = realloc(xs,
++i + 1);
\
+ xs = realloc(xs,
(++i + 1) * sizeof(type));
\
if (!xs) \
return -ENOMEM; \
*(xs + i) = invalid; \