From 960c8e176495ae62d83cdf25ee0676ca5c75f0e0 Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Fri, 5 Aug 2011 13:53:14 +0100 Subject: [PATCH] test-spam: don't try to demarshal a NULL buffer Previously, --message-stdin would hit an assertion immediately, because payload was initialized to NULL and never set. --- tools/dbus-spam.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/dbus-spam.c b/tools/dbus-spam.c index b37478e..e11a7c9 100644 --- a/tools/dbus-spam.c +++ b/tools/dbus-spam.c @@ -182,7 +182,7 @@ dbus_test_tool_spam (int argc, char **argv) else if (strcmp (arg, "--message-stdin") == 0) { consume_stdin (&payload_buf, &payload_len); - + payload = payload_buf; template = dbus_message_demarshal (payload, payload_len, &error); if (template == NULL) -- 1.7.5.4