diff options
author | Thierry Bultel <thierry.bultel@iot.bzh> | 2018-07-04 12:38:27 +0200 |
---|---|---|
committer | Loïc Collignon <loic.collignon@iot.bzh> | 2018-07-10 18:15:01 +0200 |
commit | e2e78437b472dc40e605cdcd895804105a680a1f (patch) | |
tree | 83d2554d82e64d59c8c5e4a848c47507f80000d1 /ahl-binding/interrupt.cpp | |
parent | 7275efd56abe3bc02b6f630dc18b415916e7f030 (diff) |
Fixed compilation warnings with latest jsonc
Change-Id: I87a8c0ba3fdccf6bddd6f4fb7982225c1399f130
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
Diffstat (limited to 'ahl-binding/interrupt.cpp')
-rw-r--r-- | ahl-binding/interrupt.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ahl-binding/interrupt.cpp b/ahl-binding/interrupt.cpp index fc54139..9c247b3 100644 --- a/ahl-binding/interrupt.cpp +++ b/ahl-binding/interrupt.cpp @@ -3,13 +3,17 @@ interrupt_t::interrupt_t(json_object* o) { jcast(type_, o, "type"); - args_ = json_object_object_get(o, "args"); + json_object * value = NULL; + json_object_object_get_ex(o, "args", &value); + args_ = value; } interrupt_t& interrupt_t::operator<<(json_object* o) { jcast(type_, o, "type"); - args_ = json_object_object_get(o, "args"); + json_object * value = NULL; + json_object_object_get_ex(o, "args", &value); + args_ = value; return *this; } |