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