summaryrefslogtreecommitdiff
path: root/test/manual-dir-iter.c
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2017-02-09 09:57:48 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2017-02-14 17:45:08 +0000
commit1c390c0ce4ac20d5552731a44f36f45249d33e07 (patch)
treeec7cc3d69b975a0f8423c9035fb6fca28539f589 /test/manual-dir-iter.c
parentbf0ea53cf056d98c88fd894243ab050ee59c6855 (diff)
downloaddbus-1c390c0ce4ac20d5552731a44f36f45249d33e07.tar.gz
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>
Diffstat (limited to 'test/manual-dir-iter.c')
-rw-r--r--test/manual-dir-iter.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/manual-dir-iter.c b/test/manual-dir-iter.c
index 21ac0e95..85081748 100644
--- a/test/manual-dir-iter.c
+++ b/test/manual-dir-iter.c
@@ -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)