diff options
Diffstat (limited to 'pjsip-apps/src/samples/recfile.c')
-rw-r--r-- | pjsip-apps/src/samples/recfile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pjsip-apps/src/samples/recfile.c b/pjsip-apps/src/samples/recfile.c index 92491731..e4187a65 100644 --- a/pjsip-apps/src/samples/recfile.c +++ b/pjsip-apps/src/samples/recfile.c @@ -167,7 +167,9 @@ int main(int argc, char *argv[]) puts(""); puts("Press <ENTER> to stop recording and quit"); - fgets(tmp, sizeof(tmp), stdin); + if (fgets(tmp, sizeof(tmp), stdin) == NULL) { + puts("EOF while reading stdin, will quit now.."); + } /* Start deinitialization: */ |