aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-04 19:04:39 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-04 19:04:39 +0000
commit742c3b9854aae3f19c34efd8d53cb8a561b74fb6 (patch)
treec762e50106a675a54406691e0c30ea69cc8d3607
parent6af005954cdeb601a7ce8c7e3a8f9a139f5ce1f2 (diff)
Merged revisions 237414 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r237414 | tilghman | 2010-01-04 13:03:20 -0600 (Mon, 04 Jan 2010) | 2 lines Oops, didn't compile (thanks, kpfleming) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@237416 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/config.c b/main/config.c
index ed0bc045e..f31c03e5e 100644
--- a/main/config.c
+++ b/main/config.c
@@ -2132,7 +2132,8 @@ struct ast_variable *ast_load_realtime(const char *family, ...)
res = cur->next;
freeme = cur;
} else if (cur->value[0] == ' ' && cur->value[1] == '\0') {
- cur->value[0] = '\0';
+ char *vptr = (char *) cur->value;
+ vptr[0] = '\0';
prev = cur;
} else {
prev = cur;