Fix a typo in error case comparison.
This commit is contained in:
@@ -30,7 +30,7 @@ int handle_reply(xmpp_conn_t * const conn,
|
||||
char *type;
|
||||
|
||||
type = xmpp_stanza_get_type(stanza);
|
||||
if (strcmp("type", "error") == 0)
|
||||
if (strcmp(type, "error") == 0)
|
||||
fprintf(stderr, "ERROR: query failed\n");
|
||||
else {
|
||||
query = xmpp_stanza_get_child_by_name(stanza, "query");
|
||||
|
||||
@@ -29,7 +29,7 @@ int handle_reply(xmpp_conn_t * const conn,
|
||||
char *type, *name;
|
||||
|
||||
type = xmpp_stanza_get_type(stanza);
|
||||
if (strcmp("type", "error") == 0)
|
||||
if (strcmp(type, "error") == 0)
|
||||
fprintf(stderr, "ERROR: query failed\n");
|
||||
else {
|
||||
query = xmpp_stanza_get_child_by_name(stanza, "query");
|
||||
|
||||
Reference in New Issue
Block a user