forked from enlightenment/efl
embryo_cc - check return value
this matches the check for fgetpos()
This commit is contained in:
parent
4e85b6b57b
commit
bcbe9f621e
|
@ -179,7 +179,8 @@ sc_getpossrc(void *handle)
|
||||||
static fpos_t lastpos; /* may need to have a LIFO stack of
|
static fpos_t lastpos; /* may need to have a LIFO stack of
|
||||||
* such positions */
|
* such positions */
|
||||||
|
|
||||||
fgetpos((FILE *) handle, &lastpos);
|
if (fgetpos((FILE *) handle, &lastpos) != 0)
|
||||||
|
fprintf(stderr, "embryo_xx - ERR - fgetpos()\n");
|
||||||
return &lastpos;
|
return &lastpos;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue