From 927c229a42fe66c47aab4e6c1c7215e87ebc66f8 Mon Sep 17 00:00:00 2001 From: Jack Moffitt Date: Wed, 3 May 2006 16:02:16 +0000 Subject: [PATCH] Fix a typo in error case comparison. --- examples/active.c | 2 +- examples/roster.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/active.c b/examples/active.c index 3e72373..0ce5def 100644 --- a/examples/active.c +++ b/examples/active.c @@ -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"); diff --git a/examples/roster.c b/examples/roster.c index 8503310..5e90163 100644 --- a/examples/roster.c +++ b/examples/roster.c @@ -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");