Changes in protocols/twitter/twitter_lib.c [8203da9:e4e0b37]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/twitter/twitter_lib.c
r8203da9 re4e0b37 36 36 #include <errno.h> 37 37 38 /* GLib < 2.12.0 doesn't have g_ascii_strtoll(), work around using system strtoll(). */ 39 /* GLib < 2.12.4 can be buggy: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488013 */ 40 #if !GLIB_CHECK_VERSION(2,12,5) 41 #include <stdlib.h> 42 #include <limits.h> 43 #define g_ascii_strtoll strtoll 44 #endif 45 38 46 #define TXL_STATUS 1 39 47 #define TXL_USER 2 … … 66 74 static void txu_free(struct twitter_xml_user *txu) 67 75 { 76 if (txu == NULL) 77 return; 68 78 g_free(txu->name); 69 79 g_free(txu->screen_name); … … 89 99 { 90 100 GSList *l; 101 if (txl == NULL) 102 return; 91 103 for ( l = txl->list; l ; l = g_slist_next(l) ) 92 104 if (txl->type == TXL_STATUS) … … 473 485 { 474 486 status = l->data; 487 if (status->user == NULL || status->text == NULL) 488 continue; 489 475 490 twitter_add_buddy(ic, status->user->screen_name, status->user->name); 476 491
Note: See TracChangeset
for help on using the changeset viewer.