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:
Christian Dywan 2010-07-19 11:36:15 +02:00 committed by Simon McVittie
parent 79b4e478d7
commit 14be9f738b

View file

@ -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
{