Skip to content

Commit bb55a3b

Browse files
plskeggsrlubos
authored andcommitted
samples: cellular: nrf_cloud_multi_service: Fix at cmd handling
In handle_at_cmd_requests() we need to initialize msg_obj so that the parser used in nrf_cloud_obj_input_decode() operates correctly. Jira: IRIS-9984 Signed-off-by: Pete Skeggs <[email protected]>
1 parent 19f91cd commit bb55a3b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,10 @@ Cellular samples
294294
* Removed the ``CONFIG_MOSH_LINK`` Kconfig option.
295295
The link control functionality is now always enabled and cannot be disabled.
296296

297+
* :ref:`nrf_cloud_multi_service` sample:
298+
299+
* Fixed an issue with an uninitialized variable in the :c:func:`handle_at_cmd_requests` function.
300+
297301
Cryptography samples
298302
--------------------
299303

samples/cellular/nrf_cloud_multi_service/src/application.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ static void on_location_update(const struct location_event_data * const location
212212
static void handle_at_cmd_requests(const struct nrf_cloud_data *const dev_msg)
213213
{
214214
char *cmd;
215-
struct nrf_cloud_obj msg_obj;
215+
NRF_CLOUD_OBJ_DEFINE(msg_obj, NRF_CLOUD_OBJ_TYPE__UNDEFINED);
216216
int err = nrf_cloud_obj_input_decode(&msg_obj, dev_msg);
217217

218218
if (err) {

0 commit comments

Comments
 (0)