mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 11:42:27 +00:00
Use ast_strlen_zero in privacy.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3104 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -29,6 +29,7 @@
|
|||||||
#include <asterisk/astdb.h>
|
#include <asterisk/astdb.h>
|
||||||
#include <asterisk/callerid.h>
|
#include <asterisk/callerid.h>
|
||||||
#include <asterisk/privacy.h>
|
#include <asterisk/privacy.h>
|
||||||
|
#include <asterisk/utils.h>
|
||||||
#include "asterisk.h"
|
#include "asterisk.h"
|
||||||
|
|
||||||
int ast_privacy_check(char *dest, char *cid)
|
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);
|
ast_shrink_phone_number(l);
|
||||||
trimcid = l;
|
trimcid = l;
|
||||||
}
|
}
|
||||||
if (!strlen(trimcid)) {
|
if (ast_strlen_zero(trimcid)) {
|
||||||
/* Don't store anything for empty Caller*ID */
|
/* Don't store anything for empty Caller*ID */
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user