From: Anita Zhang Date: Wed, 20 Nov 2019 05:50:51 +0000 (-0800) Subject: id128: fix initializer element is not constant X-Git-Tag: v244-rc1~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=206a29b2e1f63e664de8daffac8b2f9a9c2eec7d;p=thirdparty%2Fsystemd.git id128: fix initializer element is not constant Was getting: ../src/id128/id128.c:15:1: error: initializer element is not constant static sd_id128_t arg_app = SD_ID128_NULL; ^ when building on CentOS 7. Other parts of the code initialize `static sd_id128_t` to {} and this was the original setting before a19fdd66c22 anyways. --- diff --git a/src/id128/id128.c b/src/id128/id128.c index 4c5d696c32a..cd4d5414503 100644 --- a/src/id128/id128.c +++ b/src/id128/id128.c @@ -12,7 +12,7 @@ #include "verbs.h" static Id128PrettyPrintMode arg_mode = ID128_PRINT_ID128; -static sd_id128_t arg_app = SD_ID128_NULL; +static sd_id128_t arg_app = {}; static int verb_new(int argc, char **argv, void *userdata) { return id128_print_new(arg_mode);