From bcbe9f621e7e6b4d4ef0758035ec72f4928bb20c Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Thu, 14 Aug 2014 19:11:06 +0900 Subject: [PATCH] embryo_cc - check return value this matches the check for fgetpos() --- src/bin/embryo/embryo_cc_sc1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/embryo/embryo_cc_sc1.c b/src/bin/embryo/embryo_cc_sc1.c index 32ec7db62c..1c7ba49fad 100644 --- a/src/bin/embryo/embryo_cc_sc1.c +++ b/src/bin/embryo/embryo_cc_sc1.c @@ -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; }