diff options
author | Mike Stroyan <stroyan@google.com> | 2017-03-14 13:09:12 -0600 |
---|---|---|
committer | Mike Stroyan <stroyan@google.com> | 2017-03-14 13:09:12 -0600 |
commit | fb89f6786f33db6434f22ae46239e592557b0a31 (patch) | |
tree | 02e4fde694cc7d7fcdc7e558f5bca5229be175e9 /loader | |
parent | 40a7d533620b589644e0375e6023711b95092dc5 (diff) |
loader: Initialize json_version
Fields of json_version were left uninitialized if file_format_version
in a layer json file was incomplete. Initialize them to 0.
Diffstat (limited to 'loader')
-rw-r--r-- | loader/loader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/loader/loader.c b/loader/loader.c index 9f1a8063..9a99759e 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -2204,7 +2204,7 @@ static void loader_add_layer_properties(const struct loader_instance *inst, stru // required cJSON *item, *layers_node, *layer_node; - layer_json_version json_version; + layer_json_version json_version = {0, 0, 0}; char *vers_tok; cJSON *disable_environment = NULL; item = cJSON_GetObjectItem(json, "file_format_version"); |