embryo_cc - check return value

this matches the check for fgetpos()
This commit is contained in:
Carsten Haitzler 2014-08-14 19:11:06 +09:00
parent 4e85b6b57b
commit bcbe9f621e
1 changed files with 2 additions and 1 deletions

View File

@ -179,7 +179,8 @@ sc_getpossrc(void *handle)
static fpos_t lastpos; /* may need to have a LIFO stack of
* such positions */
fgetpos((FILE *) handle, &lastpos);
if (fgetpos((FILE *) handle, &lastpos) != 0)
fprintf(stderr, "embryo_xx - ERR - fgetpos()\n");
return &lastpos;
}