From: James Golovich Date: Fri, 28 May 2004 19:20:29 +0000 (+0000) Subject: Use ast_strlen_zero in privacy.c X-Git-Tag: 1.0.0-rc1~351 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc698e15cf4cf40b10cfa1121295b874bef8c1e5;p=thirdparty%2Fasterisk.git Use ast_strlen_zero in privacy.c git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3104 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/privacy.c b/privacy.c index ff146f1c28..9dcb4308dd 100755 --- a/privacy.c +++ b/privacy.c @@ -29,6 +29,7 @@ #include #include #include +#include #include "asterisk.h" int ast_privacy_check(char *dest, char *cid) @@ -81,7 +82,7 @@ int ast_privacy_set(char *dest, char *cid, int status) ast_shrink_phone_number(l); trimcid = l; } - if (!strlen(trimcid)) { + if (ast_strlen_zero(trimcid)) { /* Don't store anything for empty Caller*ID */ return 0; }