[farsight2/master] Only check error value if it is set
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:26:14 PST 2008
---
tests/check/transmitter/nice.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/check/transmitter/nice.c b/tests/check/transmitter/nice.c
index cb35bfd..f50b4f0 100644
--- a/tests/check/transmitter/nice.c
+++ b/tests/check/transmitter/nice.c
@@ -173,8 +173,9 @@ run_nice_transmitter_test (gint n_parameters, GParameter *params,
st = fs_transmitter_new_stream_transmitter (trans, NULL, n_parameters, params,
&error);
- ts_fail ("Error creating stream transmitter: (%s:%d) %s",
- g_quark_to_string (error->domain), error->code, error->message);
+ if (error)
+ ts_fail ("Error creating stream transmitter: (%s:%d) %s",
+ g_quark_to_string (error->domain), error->code, error->message);
ts_fail_if (st == NULL, "No stream transmitter created, yet error is NULL");
--
1.5.6.5
More information about the farsight-commits
mailing list