diff options
author | Timotej S <6674623+underhood@users.noreply.github.com> | 2020-07-08 16:20:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-08 16:20:47 +0200 |
commit | 11e4ac13577ebe65b24e7b2a7bd594ae5e128539 (patch) | |
tree | 372559562b5777d632c34492d64e68cc3a35968c /aclk/agent_cloud_link.c | |
parent | 628598c4d5d401f41f5bb43dfb2951c0bae0703e (diff) |
fix ACLK protocol version always parsed as 0 (#9502)
Diffstat (limited to 'aclk/agent_cloud_link.c')
-rw-r--r-- | aclk/agent_cloud_link.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/aclk/agent_cloud_link.c b/aclk/agent_cloud_link.c index a12c51cf9e..5ff03319e5 100644 --- a/aclk/agent_cloud_link.c +++ b/aclk/agent_cloud_link.c @@ -133,7 +133,7 @@ int cloud_to_agent_parse(JSON_ENTRY *e) break; case JSON_NUMBER: if (!strcmp(e->name, "version")) { - data->version = atoi(e->original_string); + data->version = e->data.number; break; } break; |