]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 177035 via svnmerge from
authorDoug Bailey <dbailey@digium.com>
Wed, 18 Feb 2009 17:26:25 +0000 (17:26 +0000)
committerDoug Bailey <dbailey@digium.com>
Wed, 18 Feb 2009 17:26:25 +0000 (17:26 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

........
  r177035 | dbailey | 2009-02-18 11:24:07 -0600 (Wed, 18 Feb 2009) | 2 lines

  Fixed error where a check for an zero length, terminated string was needed.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@177037 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/utils.c

index 8108125bff05298c9127a44fecac49c4549073d8..416025c62e1b9548172590d2a2486c59d2187f80 100644 (file)
@@ -1598,7 +1598,7 @@ void __ast_string_field_ptr_build_va(struct ast_string_field_mgr *mgr,
           otherwise, use the empty space at the end of the current
           pool
        */
-       if ((*ptr)[0] != '0') {
+       if ((*ptr)[0] != '\0') {
                target = (char *) *ptr;
                available = strlen(target) + 1;
        } else {