Changeset 6eca2eb for protocols/twitter/twitter_lib.c
- Timestamp:
- 2011-04-18T14:14:08Z (13 years ago)
- Branches:
- master
- Children:
- 2423c93
- Parents:
- 6cc36ef
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/twitter/twitter_lib.c
r6cc36ef r6eca2eb 142 142 /* Warning: May return a malloc()ed value, which will be free()d on the next 143 143 call. Only for short-term use. */ 144 staticchar *twitter_parse_error(struct http_request *req)144 char *twitter_parse_error(struct http_request *req) 145 145 { 146 146 static char *ret = NULL; … … 161 161 { 162 162 ret = g_strdup_printf("%s (%s)", req->status_string, node->text); 163 xt_free(xp);164 return ret;165 163 } 166 164 … … 168 166 } 169 167 170 return re q->status_string;168 return ret ? ret : req->status_string; 171 169 } 172 170
Note: See TracChangeset
for help on using the changeset viewer.