chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8e6b28
)
manager: just warn about an invalid environment entry
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Fri, 23 Jun 2017 23:20:54 +0000
(19:20 -0400)
committer
Sven Eden
<yamakuzure@gmx.net>
Tue, 25 Jul 2017 07:46:52 +0000
(09:46 +0200)
Apart from bugs (as in #6152), this can happen if we ever make
our requirements for environment entries more stringent. As with
the rest of deserialization, we should just warn and continue.
src/basic/env-util.c
patch
|
blob
|
history
diff --git
a/src/basic/env-util.c
b/src/basic/env-util.c
index cb73c9caa17d4b9e7f4290309ebd27a36b4eea40..5515fd7353b7c0534179fa11e367dcc0a7c991bd 100644
(file)
--- a/
src/basic/env-util.c
+++ b/
src/basic/env-util.c
@@
-789,7
+789,7
@@
int serialize_environment(FILE *f, char **environment) {
}
int deserialize_environment(char ***environment, const char *line) {
- char *uce
= NULL
;
+ char *uce;
int r;
assert(line);