#0 has_attribute (atts=0x0, attr=0x8051828 "rel", val=0x8051820 "license") at tracker-extract-html.c:41 36: 37: gboolean 38: has_attribute( const xmlChar ** atts, const char *attr, const char*val ) 39: { 40: int i; 41: for ( i = 0; atts[i]; i+=2 ) 42: { 43: if ( strcmp((char*)atts[i],attr) == 0 ) { 44: if ( !val || strcmp((char*)atts[i+1],val) == 0 ) { 45: return TRUE; 46: } #1 0x0804e708 in startElement (info=0xbff139ac, name=0x8064483 "a", atts=0x0) at tracker-extract-html.c:72 67: startElement (void * info, const xmlChar * name, const xmlChar ** atts) 68: { 69: /* Look for RDFa triple describing the license */ 70: if ( strcmp((char*)name,"a") == 0 ) { 71: /* This tag is a license. Ignore, however, if it is referring to another document */ 72: if ( has_attribute(atts,"rel","license") && !has_attribute(atts,"about",NULL) ) { 73: const xmlChar *href = lookup_attribute(atts,"href"); 74: if ( href ) { 75: g_hash_table_insert (((HTMLParseInfo *)info)->metadata, g_strdup ("File:License"), 76: g_strdup( (char*)href )); 77: } #2 0xb7c074bb in ?? () from /usr/lib/libxml2.so.2 #3 0xbff139ac in ?? () #4 0x08064483 in ?? () #5 0x00000000 in ?? ()