Diff between 37cf5ad50ec9eb77496bd080b8c5bb2a79edc30e and e4cec5a943233f4369f78ca016c2b3a4dbf0fd8e
Changed Files
| File | Additions | Deletions | Status |
| mesh/mesh-config-json.c | +1 | -1 | modified |
Full Patch
diff --git a/mesh/mesh-config-json.c b/mesh/mesh-config-json.c
index 177aaac..d49f522 100644
--- a/mesh/mesh-config-json.c
+++ b/mesh/mesh-config-json.c
@@ -1553,7 +1553,7 @@ bool mesh_config_write_net_transmit(struct mesh_config *cfg, uint8_t cnt,
jnode = cfg->jnode;
jretransmit = json_object_new_object();
- if (jretransmit)
+ if (!jretransmit)
return false;
if (!write_int(jretransmit, "count", cnt))