From f79d2d8a7b479153db9db978a933c940952d2e98 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 10 Jun 2011 14:12:36 +0100 Subject: [PATCH 8/9] Assert that allegedly valid type writers' type strings are never NULL --- dbus/dbus-marshal-recursive.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dbus/dbus-marshal-recursive.h b/dbus/dbus-marshal-recursive.h index 1268910..01776e7 100644 --- a/dbus/dbus-marshal-recursive.h +++ b/dbus/dbus-marshal-recursive.h @@ -184,6 +184,7 @@ dbus_bool_t _dbus_type_writer_write_reader (DBusTypeWriter *write #define _DBUS_ASSERT_TYPE_WRITER(writer) \ do { \ _dbus_assert ((writer) != NULL); \ + _dbus_assert ((writer)->type_str != NULL); \ _dbus_assert ((writer)->value_str != NULL); \ } while (0) -- 1.7.5.4