|
@@ -26,9 +26,10 @@ void _starpu_drop_comments(FILE *f)
|
|
case '#':
|
|
case '#':
|
|
{
|
|
{
|
|
char s[128];
|
|
char s[128];
|
|
|
|
+ char *ret;
|
|
do {
|
|
do {
|
|
- fgets(s, sizeof(s), f);
|
|
|
|
- } while (!strchr(s, '\n'));
|
|
|
|
|
|
+ ret = fgets(s, sizeof(s), f);
|
|
|
|
+ } while (ret && (!strchr(s, '\n')));
|
|
}
|
|
}
|
|
case '\n':
|
|
case '\n':
|
|
continue;
|
|
continue;
|