diff options
author | dbailey <dbailey@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-18 17:24:07 +0000 |
---|---|---|
committer | dbailey <dbailey@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-18 17:24:07 +0000 |
commit | fba5c1dadd7886c3f8fbf93c95bf18f6225dfc0e (patch) | |
tree | 6034c3d0901790c1c636aef83e6b1e712e9b03ba /main/utils.c | |
parent | ec3b70a59dd828e7fea24c120c3e01f2df22766a (diff) |
Fixed error where a check for an zero length, terminated string was needed.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@177035 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/utils.c')
-rw-r--r-- | main/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/utils.c b/main/utils.c index a19ed900f..8ed4a968a 100644 --- a/main/utils.c +++ b/main/utils.c @@ -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 { |