diff options
Diffstat (limited to 'pjsip-apps/src/samples/mix.c')
-rw-r--r-- | pjsip-apps/src/samples/mix.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pjsip-apps/src/samples/mix.c b/pjsip-apps/src/samples/mix.c index 6cf93a0f..f409af2b 100644 --- a/pjsip-apps/src/samples/mix.c +++ b/pjsip-apps/src/samples/mix.c @@ -129,7 +129,8 @@ int main(int argc, char *argv[]) printf("File %s exists, overwrite? [Y/N] ", out_fname); fflush(stdout); - fgets(in, sizeof(in), stdin); + if (fgets(in, sizeof(in), stdin) == NULL) + return 1; if (pj_tolower(in[0]) != 'y') return 1; } |