[Vala] functions and null



Hi, why this code doesn't work

Item item = null;

parse_content(item);

parse_content(Item item) {
        stderr.printf("argh");
}

reports
** (process:674): CRITICAL **: xml_parser_parse_content: assertion
`item != NULL' failed

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]