diff options
author | LRN <lrn1986@gmail.com> | 2012-08-02 16:58:22 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2012-08-02 16:58:22 +0000 |
commit | 7a3b043383533db5515daf21a9eae2ee24613030 (patch) | |
tree | 79e1d4d7e02c5be68646d77d4a2b61eeea12ed4a /src/main/extractor_datasource.c | |
parent | 1687a6aff0c356fb2638f293236097c170bde7e7 (diff) | |
download | libextractor-7a3b043383533db5515daf21a9eae2ee24613030.tar.gz libextractor-7a3b043383533db5515daf21a9eae2ee24613030.zip |
Now test_ipc should work (kind of)
Diffstat (limited to 'src/main/extractor_datasource.c')
-rw-r--r-- | src/main/extractor_datasource.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/extractor_datasource.c b/src/main/extractor_datasource.c index a730c48..9314dd9 100644 --- a/src/main/extractor_datasource.c +++ b/src/main/extractor_datasource.c | |||
@@ -281,7 +281,8 @@ bfds_new (const void *data, | |||
281 | memset (result, 0, sizeof (struct BufferedFileDataSource)); | 281 | memset (result, 0, sizeof (struct BufferedFileDataSource)); |
282 | result->data = (NULL != data) ? data : &result[1]; | 282 | result->data = (NULL != data) ? data : &result[1]; |
283 | result->buffer = (NULL != data) ? NULL : &result[1]; | 283 | result->buffer = (NULL != data) ? NULL : &result[1]; |
284 | result->buffer_size = (NULL != data) ? fsize : xtra; | 284 | result->buffer_size = (NULL != data) ? fsize : xtra; |
285 | result->buffer_bytes = (NULL != data) ? fsize : 0; | ||
285 | result->fsize = fsize; | 286 | result->fsize = fsize; |
286 | result->fd = fd; | 287 | result->fd = fd; |
287 | bfds_pick_next_buffer_at (result, 0); | 288 | bfds_pick_next_buffer_at (result, 0); |