From 4c81fdf3eec5c82a434a12e85b7f6cc1b6648318 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 30 Apr 2013 18:45:24 -0500 Subject: [PATCH] FS-5359 --resolve --- src/switch_core_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_core_file.c b/src/switch_core_file.c index 0f6de164a8..33c2fa4201 100644 --- a/src/switch_core_file.c +++ b/src/switch_core_file.c @@ -271,7 +271,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_file_read(switch_file_handle_t *fh, if (fh->buffer && switch_buffer_inuse(fh->buffer) >= *len * 2) { *len = switch_buffer_read(fh->buffer, data, orig_len * 2) / 2; - return SWITCH_STATUS_SUCCESS; + return *len == 0 ? SWITCH_STATUS_FALSE : SWITCH_STATUS_SUCCESS; } if (switch_test_flag(fh, SWITCH_FILE_DONE)) {