Fix a typo in error case comparison.

This commit is contained in:
Jack Moffitt
2006-05-03 16:02:16 +00:00
parent 6a4e4be4bd
commit 927c229a42
2 changed files with 2 additions and 2 deletions

View File

@@ -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");

View File

@@ -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");