Re: GLib source id wrap around



Hi,

Max Krasnyansky <maxk qualcomm com> writes:

> Also it looks like some glib functions don't bother checking for errors ;-).
> For example g_source_new() does
>           source = (GSource*) g_malloc0 (struct_size);
> 
>           source->source_funcs = source_funcs;
> g_malloc0() can fail and return NULL.

No, it can't. If g_malloc() fails, it calls g_error() and doesn't
return.


Sven



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]