/soc/2015/jgeboski/facebook: 60583804399d: facebook: use NULL not 0
James Geboski
jgeboski at gmail.com
Fri Aug 21 22:41:25 EDT 2015
Changeset: 60583804399d495497089fcf0b7c5b4937928181
Author: James Geboski <jgeboski at gmail.com>
Date: 2015-08-21 22:35 -0400
Branch: facebook
URL: https://hg.pidgin.im/soc/2015/jgeboski/facebook/rev/60583804399d
Description:
facebook: use NULL not 0
diffstat:
libpurple/protocols/facebook/api.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff --git a/libpurple/protocols/facebook/api.c b/libpurple/protocols/facebook/api.c
--- a/libpurple/protocols/facebook/api.c
+++ b/libpurple/protocols/facebook/api.c
@@ -584,7 +584,7 @@ fb_api_json_chk(FbApi *api, gconstpointe
);
code = fb_json_values_next_int(values, 0);
- str = fb_json_values_next_str(values, 0);
+ str = fb_json_values_next_str(values, NULL);
if (purple_strequal(str, "OAuthException") || (code == 401)) {
errc = FB_API_ERROR_AUTH;
@@ -597,7 +597,7 @@ fb_api_json_chk(FbApi *api, gconstpointe
priv->token = NULL;
}
- str = fb_json_values_next_str(values, 0);
+ str = fb_json_values_next_str(values, NULL);
if (purple_strequal(str, "ERROR_QUEUE_NOT_FOUND") ||
purple_strequal(str, "ERROR_QUEUE_LOST"))
More information about the Commits
mailing list