Replace three replicas of the same code with a function.
authorLuigi Rizzo <rizzo@icir.org>
Fri, 21 Apr 2006 09:54:23 +0000 (09:54 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Fri, 21 Apr 2006 09:54:23 +0000 (09:54 +0000)
commit2d0ff2cf1aaa299bd8eafbb545a2b446f00bc38e
treef96ab250512eb96e7f6019537f9d233d21a1f6d7
parent08220b9073416a8a7ac4e2ca95588cf516c55754
Replace three replicas of the same code with a function.
Consider NULL and "" as equivalent in cid strings.

On passing, also remove an extra data copy.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21786 65c4cc65-6c06-0410-ace0-fbb531ad65f3
cdr.c