diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2012-11-09 00:23:44 +0000 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2012-11-09 00:23:44 +0000 | 
| commit | 5246133a607561abe8096c471de02bddeb6be67c (patch) | |
| tree | 66359f20ff0c00e8a47b76160adf5dd59a0cc1ca /lib | |
| parent | fb351ce6b6cdc714019f49f693182e32055fd78b (diff) | |
Updated error response parsing. Also, use this for 401 responses so for example
the auth errors caused by NTP desync are clearer:
<root> twitter - Login error: Authentication failure (401 Unauthorized 
       (Timestamp out of bounds))
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/json_util.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/lib/json_util.c b/lib/json_util.c index 43e687e3..470a6b02 100644 --- a/lib/json_util.c +++ b/lib/json_util.c @@ -30,7 +30,7 @@ json_value *json_o_get( const json_value *obj, const json_char *name )  {   	int i; -	if( obj->type != json_object ) +	if( !obj || obj->type != json_object )  		return NULL;  	for( i = 0; i < obj->u.object.length; ++ i) | 
