You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "Sterling Hughes (JIRA)" <ji...@apache.org> on 2017/02/26 01:28:44 UTC
[jira] [Assigned] (MYNEWT-435) Incorrect usage of CONF_VALUE_SET
with string variable
[ https://issues.apache.org/jira/browse/MYNEWT-435?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sterling Hughes reassigned MYNEWT-435:
--------------------------------------
Assignee: Marko Kiiskila
Can we look at this prior to rel?
> Incorrect usage of CONF_VALUE_SET with string variable
> ------------------------------------------------------
>
> Key: MYNEWT-435
> URL: https://issues.apache.org/jira/browse/MYNEWT-435
> Project: Mynewt
> Issue Type: Bug
> Affects Versions: v0_9_0
> Reporter: hathach
> Assignee: Marko Kiiskila
>
> In app/slinky line 172
> https://github.com/apache/incubator-mynewt-core/blob/master/apps/slinky/src/main.c#L172
> CONF_VALUE_SET(val, CONF_STRING, test_str) will be expanded to
> conf_value_from_str((val), (CONF_STRING), &(test_str), sizeof(test_str)).
> test_str should be passed instead of &test_str since it is declared as char array.
> Similarly there is other few places
> - https://github.com/apache/incubator-mynewt-core/blob/master/sys/id/src/id.c#L83
> - https://github.com/apache/incubator-mynewt-core/blob/master/sys/reboot/src/log_reboot.c#L186
> - https://github.com/apache/incubator-mynewt-core/blob/master/sys/reboot/src/log_reboot.c#L193
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)