[Vala] Possibly, error in code generator



The program gives segmentation fault. 

Line 26:
FILE* file;
FILE* _tmp1;
..............
Line 35:
file = g_new0 (FILE, 1);
_tmp1 = NULL;
(_tmp1 = fopen (filename, "r"));
(_tmp1 == NULL ? NULL : (_tmp1 = (fclose (_tmp1), NULL)));

I think, the "file = _tmp1" is missed here. The program segfaults at
file.eof().

Attachment: test.vala
Description: Text Data

Attachment: test.c
Description: Text Data



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