Skip to content
Snippets Groups Projects
Commit cc698e15 authored by James Golovich's avatar James Golovich
Browse files

Use ast_strlen_zero in privacy.c

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3104 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 49269086
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,7 @@
#include <asterisk/astdb.h>
#include <asterisk/callerid.h>
#include <asterisk/privacy.h>
#include <asterisk/utils.h>
#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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment