fix bug when checking for quotes

This commit is contained in:
Simon Morlat 2010-05-27 10:54:35 +02:00
parent bda56cf296
commit 8693525b3a

View file

@ -1596,7 +1596,7 @@ SalAddress * sal_address_new(const char *uri){
osip_from_free(from);
return NULL;
}
if (from->displayname!=NULL && from->displayname[0]!='"'){
if (from->displayname!=NULL && from->displayname[0]=='"'){
char *unquoted=osip_strdup_without_quote(from->displayname);
osip_free(from->displayname);
from->displayname=unquoted;