pidgin/pidgin

Move g_return_if_fail to top of function and exit early.
release-2.x.y
2014-01-19, Mark Doliner
c3077dd1c5c7
Move g_return_if_fail to top of function and exit early.

This way the meat of the function isn't needlessly indented.
I think it's easier to read code structured this way.
/** @page gtklog-signals GtkLog Signals
@signals
@signal log-displaying
@endsignals
@see gtklog.h
<hr>
@signaldef log-displaying
@signalproto
void (*log_displaying)(PidginLogViewer *viewer, PurpleLog *log);
@endsignalproto
@signaldesc
Emitted when a log is being displayed.
@param viewer The log viewer
@param log The log being displayed
@endsignaldef
*/
// vim: syntax=c.doxygen tw=75 et