Menu

#2 Variable used before definition

open
nobody
None
5
2007-02-20
2007-02-20
No

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.

Discussion


Log in to post a comment.