X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Flog.c;h=1c589ac46752e56dcb1254982a43b90c8eed10ac;hb=c73d180dc4bbd87c945a524b42b672af2ffe2609;hp=b730ac921a13d23790d1ad5938e55bf51690221f;hpb=b5af2aca120f1bf13cffc270803c2232918dd967;p=elogind.git diff --git a/src/shared/log.c b/src/shared/log.c index b730ac921..1c589ac46 100644 --- a/src/shared/log.c +++ b/src/shared/log.c @@ -908,10 +908,9 @@ static int parse_proc_cmdline_item(const char *key, const char *value) { } void log_parse_environment(void) { - _cleanup_free_ char *line = NULL; const char *e; - parse_proc_cmdline(parse_proc_cmdline_item); + (void) parse_proc_cmdline(parse_proc_cmdline_item); e = secure_getenv("SYSTEMD_LOG_TARGET"); if (e && log_set_target_from_string(e) < 0)