mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-03 07:48:14 +02:00
test: Add a missing OOM path in manual-dir-iter test
Odd that this one was missing but all the other ones were in place. Coverity ID: 54721 Signed-off-by: Philip Withnall <withnall@endlessm.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=99724 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
This commit is contained in:
parent
bf0ea53cf0
commit
1c390c0ce4
1 changed files with 3 additions and 1 deletions
|
|
@ -47,7 +47,9 @@ main (int argc,
|
|||
if (!_dbus_string_init (&dirname))
|
||||
oom ("init dirname");
|
||||
|
||||
_dbus_string_append (&dirname, argv[1]);
|
||||
if (!_dbus_string_append (&dirname, argv[1]))
|
||||
oom ("append argv[1]");
|
||||
|
||||
dir = _dbus_directory_open (&dirname, &tmp_error);
|
||||
|
||||
if (dir == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue