summaryrefslogtreecommitdiff
path: root/main/config.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2010-01-04 18:42:10 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2010-01-04 18:42:10 +0000
commitf2a282ce17c25ff9537e6c4149c21642c840036f (patch)
treeaafc7bf475dc503eaec73c3ebdb5ff9d3235e7c1 /main/config.c
parent386b847075297f09daaf259f9cdfc77f82a0133d (diff)
Further reduce the encoded blank values back to blank in the realtime API.
(closes issue #16533) Reported by: sergee Patches: 200100104__issue16533.diff.txt uploaded by tilghman (license 14) Tested by: sergee git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@237410 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/config.c')
-rw-r--r--main/config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/config.c b/main/config.c
index c17d22b8a..1398803da 100644
--- a/main/config.c
+++ b/main/config.c
@@ -2155,6 +2155,9 @@ struct ast_variable *ast_load_realtime(const char *family, ...)
else
res = cur->next;
freeme = cur;
+ } else if (cur->value[0] == ' ' && cur->value[1] == '\0') {
+ cur->value[0] = '\0';
+ prev = cur;
} else {
prev = cur;
}