msc: Name is never NULL use strlen to check if it is empty

Fixes: Coverity CID 1040716
This commit is contained in:
Holger Hans Peter Freyther 2014-04-04 11:50:41 +02:00
parent 8a080be4ad
commit cb4567f117
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ static void subscr_dump_full_vty(struct vty *vty, struct gsm_subscriber *subscr,
vty_out(vty, " ID: %llu, Authorized: %d%s", subscr->id,
subscr->authorized, VTY_NEWLINE);
if (subscr->name)
if (strlen(subscr->name))
vty_out(vty, " Name: '%s'%s", subscr->name, VTY_NEWLINE);
if (subscr->extension)
vty_out(vty, " Extension: %s%s", subscr->extension,