summaryrefslogtreecommitdiff
path: root/log
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2017-10-30 12:05:31 -0700
committerJohn Crispin <john@phrozen.org>2017-11-06 09:06:31 +0100
commitdd61c9f1c68b067ab841c8f4d2008075e95fe29a (patch)
treef04c343a9e98e366a924000afdb6c8772b3fbe61 /log
parentb1bc8d5fb874cdd22701a08d0fb0de4330f86814 (diff)
downloadubox-dd61c9f1c68b067ab841c8f4d2008075e95fe29a.tar.gz
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 <rosenp@gmail.com>
Diffstat (limited to 'log')
-rw-r--r--log/logd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/log/logd.c b/log/logd.c
index 07aee2b..9b481cd 100644
--- a/log/logd.c
+++ b/log/logd.c
@@ -84,7 +84,7 @@ read_log(struct ubus_context *ctx, struct ubus_object *obj,
struct blob_attr *msg)
{
struct client *cl;
- struct blob_attr *tb[__READ_MAX] = { 0 };
+ struct blob_attr *tb[__READ_MAX] = {};
struct log_head *l;
int count = 0;
int fds[2];