projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4926908
)
Use ast_strlen_zero in privacy.c
author
James Golovich
<james@gnuinter.net>
Fri, 28 May 2004 19:20:29 +0000
(19:20 +0000)
committer
James Golovich
<james@gnuinter.net>
Fri, 28 May 2004 19:20:29 +0000
(19:20 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3104
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
privacy.c
patch
|
blob
|
history
diff --git
a/privacy.c
b/privacy.c
index
ff146f1
..
9dcb430
100755
(executable)
--- a/
privacy.c
+++ b/
privacy.c
@@
-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;
}