[Pidgin] #7765: g_strdup_printf can be called on a null string in purple_srv_resolve

Pidgin trac at pidgin.im
Sat Dec 13 07:22:59 EST 2008


#7765: g_strdup_printf can be called on a null string in purple_srv_resolve
--------------------+-------------------------------------------------------
 Reporter:  fqueze  |        Owner:           
     Type:  patch   |       Status:  new      
Milestone:          |    Component:  libpurple
  Version:  2.5.2   |   Resolution:           
 Keywords:          |  
--------------------+-------------------------------------------------------

Comment(by fqueze):

 Replying to [comment:1 datallah]:
 > This type of check should probably be a g_return_*() type of check

 Right.  I wanted to use a g_return_val_if_fail check but it was not
 possible because the callback needs to be called before returning.

 Just found g_return_val_if_reached in the doc.

-- 
Ticket URL: <http://developer.pidgin.im/ticket/7765#comment:2>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list