[OpenSER-Devel] SF.net SVN: openser: [2930] trunk/modules/presence
Anca Vamanu
anca at voice-system.ro
Wed Oct 17 17:02:16 CEST 2007
Dan Pascu wrote:
> On Wednesday 17 October 2007, Anca Vamanu wrote:
>
>> Revision: 2930
>> http://openser.svn.sourceforge.net/openser/?rev=2930&view=rev
>> Author: anca_vamanu
>> Date: 2007-10-17 05:00:17 -0700 (Wed, 17 Oct 2007)
>>
>> Log Message:
>> -----------
>> - fixed to remove compile warnings - reported by Dan Pascu
>>
>> Modified Paths:
>> --------------
>> trunk/modules/presence/publish.c
>>
>
> Is this test right?
>
> if(sender_uri && strcmp(sender_uri, ""))
>
> sender_uri is of type pv_elem_t* (it was converted by the fixup function).
>
>
>
You are right, the type is not char* but pv_elem_t* as the fixup
function is used.
I discovered that in case the argument of the handle_publish function is
"", the final argument after the fixup is NULL, so the first check is
sufficient.
Sorry for the mistake.
regards,
Anca Vamanu
More information about the Devel
mailing list