From be0af26dbc98d666d0d023bab7357794e42d1a6a Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Mon, 19 Jul 2010 11:36:15 +0200 Subject: [PATCH] Handle failure to allocate error message in _read_subprocess_line_argv --- dbus/dbus-sysdeps-unix.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/dbus/dbus-sysdeps-unix.c b/dbus/dbus-sysdeps-unix.c index 3205bed..46ac4d8 100644 --- a/dbus/dbus-sysdeps-unix.c +++ b/dbus/dbus-sysdeps-unix.c @@ -3180,7 +3180,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 { -- 1.7.2.3