src/util.c

changeset 12628
35043a7fb16c
parent 12622
55c9c22a3885
child 12640
1fb40d5d76e7
equal deleted inserted replaced
12627:fa4c64a821d2 12628:35043a7fb16c
1359 /* Only insert the href if it's different from the CDATA. */ 1359 /* Only insert the href if it's different from the CDATA. */
1360 if (hrlen != j - href_st || 1360 if (hrlen != j - href_st ||
1361 strncmp(str2 + href_st, href, hrlen)) 1361 strncmp(str2 + href_st, href, hrlen))
1362 { 1362 {
1363 str2[j++] = ' '; 1363 str2[j++] = ' ';
1364 str2[j++] = '<'; 1364 str2[j++] = '(';
1365 g_memmove(str2 + j, href, hrlen); 1365 g_memmove(str2 + j, href, hrlen);
1366 j += hrlen; 1366 j += hrlen;
1367 str2[j++] = '>'; 1367 str2[j++] = ')';
1368 g_free(href); 1368 g_free(href);
1369 href = NULL; 1369 href = NULL;
1370 } 1370 }
1371 } 1371 }
1372 1372

mercurial