Re: GLib source id wrap around
- From: Sven Neumann <sven gimp org>
- To: Max Krasnyansky <maxk qualcomm com>
- Cc: gtk-devel-list gnome org
- Subject: Re: GLib source id wrap around
- Date: 13 Oct 2003 18:54:42 +0200
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]