[Freeswitch-dev] Always true if statement (sofia_presence.c:837 )

Mathieu Rene mrene_lists at avgs.ca
Fri Feb 11 22:10:42 MSK 2011


My line 837 is ",'%q','%q','%q',sip_presence.status,sip_presence.rpid,sip_presence.open_closed,'%q','%q',"

If I assume you mean line 832  if ((sql = switch_mprintf("select distinct sip_subscriptions.proto,sip_subscriptions.sip_user,sip_subscriptions.sip_host,"
It'll be true if switch_mprintf() succeeds, false if it fails.

Mathieu Rene
Avant-Garde Solutions Inc
Office: + 1 (514) 664-1044 x100
Cell: +1 (514) 664-1044 x200
mrene at avgs.ca




On 2011-02-11, at 8:28 AM, Patrick Plattes wrote:

> Hi,
> 
> on sofia_presence.c:837, isn't it always be true?
> 
> Bye,
>  Patrick
> 
> _______________________________________________
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org




More information about the FreeSWITCH-dev mailing list