From dd61c9f1c68b067ab841c8f4d2008075e95fe29a Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Mon, 30 Oct 2017 12:05:31 -0700 Subject: ubox: Replace { 0 } with {}. The latter is more compatible with older GCC versions like 4.9. Additionally, initializing with { 0 } produces a warning that only the first field was initialized. Signed-off-by: Rosen Penev --- validate/cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'validate') diff --git a/validate/cli.c b/validate/cli.c index f03c8a1..1fc7b08 100644 --- a/validate/cli.c +++ b/validate/cli.c @@ -175,7 +175,7 @@ static int validate_option(struct uci_context *ctx, char *package, char *section, char *option) { char *opt, *expr, *def; - struct uci_ptr ptr = { 0 }; + struct uci_ptr ptr = {}; if (!parse_tuple(option, &opt, &expr, &def)) { -- cgit v1.2.1