Blob Blame History Raw
Index: bti-034/bti.c
===================================================================
--- bti-034.orig/bti.c
+++ bti-034/bti.c
@@ -454,7 +454,7 @@ static void parse_timeline(char *documen
 	struct json_object *val;				\
 	struct lh_entry *entry;					\
 	for (entry = json_object_get_object(obj)->head;		\
-		({ if(entry && !is_error(entry)) {		\
+		({ if(entry != NULL) {				\
 			key = (char*)entry->k;			\
 			val = (struct json_object*)entry->v;	\
 		} ; entry; });					\
@@ -670,7 +670,7 @@ static int parse_response_json(char *doc
 
 	/* make global for now */
 	store_session = session;
-	if (!is_error(jobj)) {
+	if (jobj != NULL) {
 		/* guards against a json pre 0.10 bug */
 		json_parse(jobj,0);
 	}
@@ -695,7 +695,7 @@ static void parse_timeline_json(char *do
 
 	/* make global for now */
 	store_session = session;
-	if (!is_error(jobj)) {
+	if (jobj != NULL) {
 		/* guards against a json pre 0.10 bug */
 		if (json_object_get_type(jobj)==json_type_array) {
 			json_parse_array(jobj, NULL, 0);