mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-06 08:08:05 +02:00
Handle failure to allocate error message in _read_subprocess_line_argv
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=29881
This commit is contained in:
parent
79b4e478d7
commit
14be9f738b
1 changed files with 6 additions and 1 deletions
|
|
@ -3188,7 +3188,12 @@ _read_subprocess_line_argv (const char *progpath,
|
|||
{
|
||||
/* The process ended with error */
|
||||
DBusString error_message;
|
||||
_dbus_string_init (&error_message);
|
||||
if (!_dbus_string_init (&error_message))
|
||||
{
|
||||
_DBUS_SET_OOM (error);
|
||||
goto out;
|
||||
}
|
||||
|
||||
ret = 0;
|
||||
do
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue