In function parseContent():
...
case PICO_TAG_NONE:
/* Parse normal text content */
while ((buf[c] != '<') && (buf[c] != '\0')) {
c++;
}
/* Copy the value to a temp. string */
tmp = calloc(c - c1 + 1, 1); /* rasta error */
...
before varibale c1 was declared but not defined.