From: Doug Bailey Date: Wed, 18 Feb 2009 17:24:07 +0000 (+0000) Subject: Fixed error where a check for an zero length, terminated string was needed. X-Git-Tag: 1.6.2.0-beta1~181 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=794934535297a2f685471bf5f21ae46b94b2b478;p=thirdparty%2Fasterisk.git Fixed error where a check for an zero length, terminated string was needed. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@177035 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/utils.c b/main/utils.c index a19ed900fd..8ed4a968a9 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 {