]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 237414 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 4 Jan 2010 19:04:39 +0000 (19:04 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 4 Jan 2010 19:04:39 +0000 (19:04 +0000)
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: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@237416 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/config.c

index ed0bc045ebcb5af6ac912f3a1b3a6f76aeaa0159..f31c03e5ef914930a06225fbe62126d048fa29e9 100644 (file)
@@ -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;