aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2012-01-04 00:01:51 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2012-01-04 00:01:51 +0000
commit761572639774ee1642229a24c625a569ef4ab48c (patch)
tree6486d6ee8fe611a8f0754898906ca56e32268542 /lib
parent59c03bd147dfaf5b849d2e68397cb63adf6146b5 (diff)
Fixing one compiler warning that shouldn't indicate any real problem (only
causes unpredictable behaviour on wrongly formatted JSON input).
Diffstat (limited to 'lib')
-rw-r--r--lib/oauth2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oauth2.c b/lib/oauth2.c
index 1af63974..87965d04 100644
--- a/lib/oauth2.c
+++ b/lib/oauth2.c
@@ -143,7 +143,7 @@ static void oauth2_access_token_done( struct http_request *req )
work for integer values, nor will it strip/handle backslashes. */
static char *oauth2_json_dumb_get( const char *json, const char *key )
{
- int is_key; /* 1 == reading key, 0 == reading value */
+ int is_key = 0; /* 1 == reading key, 0 == reading value */
int found_key = 0;
while( json && *json )