You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "hathach (JIRA)" <ji...@apache.org> on 2016/10/11 04:32:20 UTC

[jira] [Created] (MYNEWT-435) Incorrect usage of CONF_VALUE_SET with string

hathach created MYNEWT-435:
------------------------------

             Summary: Incorrect usage of CONF_VALUE_SET with string
                 Key: MYNEWT-435
                 URL: https://issues.apache.org/jira/browse/MYNEWT-435
             Project: Mynewt
          Issue Type: Bug
    Affects Versions: v0_9_0
            Reporter: hathach


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.4#6332)