dbus/message: fix up recent signature change
Now that the signature is cleared to "" if not set, there is no reason
to ever conditionalize access to it. Fix the message body parser
accordingly.
@@ -329,6 +329,7 @@ static int message_parse_header(Message *message, MessageMetadata *metadata) {
* Fix up the signature. The DBus spec states that missing signatures
* should be treated as empty.
*/
+
metadata->fields.signature = metadata->fields.signature ?: "";
/*
@@ -349,7 +350,7 @@ static int message_parse_header(Message *message, MessageMetadata *metadata) {
static int message_parse_body(Message *message, MessageMetadata *metadata) {
_c_cleanup_(c_dvar_deinitp) CDVar v = C_DVAR_INIT;
- const char *signature = metadata->fields.signature ?: "";
+ const char *signature = metadata->fields.signature;
size_t i, n_signature, n_types;
CDVarType *t, *types;
int r;
