mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Removed unnecessary strdup
This commit is contained in:
parent
1a300ce7d3
commit
f26686aeca
@ -222,10 +222,9 @@ _message_error_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
|
|||||||
type = xmpp_stanza_get_attribute(error_stanza, STANZA_ATTR_TYPE);
|
type = xmpp_stanza_get_attribute(error_stanza, STANZA_ATTR_TYPE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// handle recipient not found
|
// handle recipient not found ('from' contains a value and type is 'cancel'
|
||||||
if ((from != NULL) && ((type != NULL && (strcmp(type, "cancel") == 0)))) {
|
if ((from != NULL) && ((type != NULL && (strcmp(type, "cancel") == 0)))) {
|
||||||
char *cpy = strdup(from);
|
handle_recipient_not_found(from, err_msg);
|
||||||
handle_recipient_not_found(cpy, err_msg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user