]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
timeout: Document fallibility of _dbus_timeout_new()
authorSimon McVittie <smcv@collabora.com>
Fri, 16 May 2025 10:52:11 +0000 (11:52 +0100)
committerSimon McVittie <smcv@collabora.com>
Fri, 23 May 2025 10:36:33 +0000 (10:36 +0000)
Like all other functions that allocate memory, libdbus assumes that this
can fail on OOM.

Signed-off-by: Simon McVittie <smcv@collabora.com>
dbus/dbus-timeout.c

index 5ee9808aebc8fef6653a8727affbb0f86cfb9cd8..412420e4a54e1033fe29278a7141d5127f91c6c0 100644 (file)
@@ -60,7 +60,7 @@ struct DBusTimeout
  * @param handler function to call when the timeout occurs.
  * @param data data to pass to the handler
  * @param free_data_function function to be called to free the data.
- * @returns the new DBusTimeout object,
+ * @returns the new DBusTimeout object, or #NULL if out of memory
  */
 DBusTimeout*
 _dbus_timeout_new (int                 interval,