chiark / gitweb /
manager: just warn about an invalid environment entry
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 23 Jun 2017 23:20:54 +0000 (19:20 -0400)
committerSven 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

index cb73c9caa17d4b9e7f4290309ebd27a36b4eea40..5515fd7353b7c0534179fa11e367dcc0a7c991bd 100644 (file)
@@ -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);