You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/06/10 00:03:40 UTC

[3/4] incubator-mynewt-core git commit: config; bug fix - was not detecting duplicate empty values when user saves "" instead of NULL.

config; bug fix - was not detecting duplicate empty values when
user saves "" instead of NULL.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/b59104be
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/b59104be
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/b59104be

Branch: refs/heads/develop
Commit: b59104beb00b5eb21b00b0b01923d9f70d5c09d5
Parents: e25d068
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Thu Jun 9 16:35:46 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Thu Jun 9 16:35:46 2016 -0700

----------------------------------------------------------------------
 sys/config/src/config_store.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/b59104be/sys/config/src/config_store.c
----------------------------------------------------------------------
diff --git a/sys/config/src/config_store.c b/sys/config/src/config_store.c
index 0611c00..6bd94a1 100644
--- a/sys/config/src/config_store.c
+++ b/sys/config/src/config_store.c
@@ -89,7 +89,7 @@ conf_dup_check_cb(char *name, char *val, void *cb_arg)
         return;
     }
     if (!val) {
-        if (!cdca->val) {
+        if (!cdca->val || cdca->val[0] == '\0') {
             cdca->is_dup = 1;
         } else {
             cdca->is_dup = 0;