From: Lennart Poettering Date: Mon, 11 Jan 2021 20:08:01 +0000 (+0100) Subject: virt: merge three variable declarations X-Git-Tag: v248-rc1~373^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a7e508f899f983d508c8e021c0e1b241ced8fa86;p=thirdparty%2Fsystemd.git virt: merge three variable declarations --- diff --git a/src/basic/virt.c b/src/basic/virt.c index 33d7106c0ea..bc9f7698518 100644 --- a/src/basic/virt.c +++ b/src/basic/virt.c @@ -456,9 +456,7 @@ DEFINE_PRIVATE_STRING_TABLE_LOOKUP_FROM_STRING(container, int); int detect_container(void) { static thread_local int cached_found = _VIRTUALIZATION_INVALID; - _cleanup_free_ char *m = NULL; - _cleanup_free_ char *o = NULL; - _cleanup_free_ char *p = NULL; + _cleanup_free_ char *m = NULL, *o = NULL, *p = NULL; const char *e = NULL; int r;