summaryrefslogtreecommitdiff
path: root/test/spawn-test.c
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2016-04-29 09:47:51 +0200
committerRalf Habacker <ralf.habacker@freenet.de>2016-04-29 13:08:14 +0200
commit9323a621e868d6a5b628b89696b1efe0300ff939 (patch)
treedd249ca2a29312def7bddd2de1e1c4c74e1a1fa8 /test/spawn-test.c
parent072cdf11ab4f180523fc77a4892059d0a899a7a2 (diff)
downloaddbus-9323a621e868d6a5b628b89696b1efe0300ff939.tar.gz
Fix assert in test-spawn caused by missing initialization of DBusError instance on gcc builds.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=95160 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'test/spawn-test.c')
-rw-r--r--test/spawn-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/spawn-test.c b/test/spawn-test.c
index 723a4889..12d37c80 100644
--- a/test/spawn-test.c
+++ b/test/spawn-test.c
@@ -16,7 +16,7 @@ main (int argc, char **argv)
{
char **argv_copy;
int i;
- DBusError error;
+ DBusError error = DBUS_ERROR_INIT;
if (argc < 2)
{