]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5359 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 30 Apr 2013 23:45:24 +0000 (18:45 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 30 Apr 2013 23:46:15 +0000 (18:46 -0500)
src/switch_core_file.c

index 0f6de164a83a1ede01fb4d48c032be7b93764b35..33c2fa42014dd24e3c1d01a129038642771ea1ce 100644 (file)
@@ -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)) {