Oops, didn't compile (thanks, kpfleming)
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 4 Jan 2010 19:03:20 +0000 (19:03 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 4 Jan 2010 19:03:20 +0000 (19:03 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@237414 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/config.c

index 1398803..3d4982a 100644 (file)
@@ -2156,7 +2156,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;