From cc698e15cf4cf40b10cfa1121295b874bef8c1e5 Mon Sep 17 00:00:00 2001 From: James Golovich Date: Fri, 28 May 2004 19:20:29 +0000 Subject: Use ast_strlen_zero in privacy.c git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3104 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- privacy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'privacy.c') diff --git a/privacy.c b/privacy.c index ff146f1c2..9dcb4308d 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; } -- cgit v1.2.3