Fixed error where a check for an zero length, terminated string was needed.
authorDoug Bailey <dbailey@digium.com>
Wed, 18 Feb 2009 17:24:07 +0000 (17:24 +0000)
committerDoug Bailey <dbailey@digium.com>
Wed, 18 Feb 2009 17:24:07 +0000 (17:24 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@177035 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/utils.c

index a19ed90..8ed4a96 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 {