]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 237410 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 4 Jan 2010 18:43:40 +0000 (18:43 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 4 Jan 2010 18:43:40 +0000 (18:43 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

........
  r237410 | tilghman | 2010-01-04 12:42:10 -0600 (Mon, 04 Jan 2010) | 7 lines

  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/branches/1.6.1@237412 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/config.c

index 19d71697b15b297f9033e93e1461a071afe0eafb..ed0bc045ebcb5af6ac912f3a1b3a6f76aeaa0159 100644 (file)
@@ -2131,6 +2131,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;
                }