diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-05-09 15:55:33 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-05-09 15:55:33 +0200 |
commit | 1e71123be300aa08325aca68f12d54e7149bd820 (patch) | |
tree | 00f2e457fd5a860d70deb5008eb44c60da0dbbde /src/xine-engine/input_cache.c | |
parent | c99cd9519a56b2d7c60fa30e9fecd02f08336671 (diff) | |
download | xine-lib-1e71123be300aa08325aca68f12d54e7149bd820.tar.gz xine-lib-1e71123be300aa08325aca68f12d54e7149bd820.tar.bz2 |
Remove a new bunch of xine_malloc() calls.
Also don't reset memory after it's allocated if we do that with
calloc.
Diffstat (limited to 'src/xine-engine/input_cache.c')
-rw-r--r-- | src/xine-engine/input_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xine-engine/input_cache.c b/src/xine-engine/input_cache.c index 242449b9f..4eb524af6 100644 --- a/src/xine-engine/input_cache.c +++ b/src/xine-engine/input_cache.c @@ -386,7 +386,7 @@ input_plugin_t *_x_cache_plugin_get_instance (xine_stream_t *stream, int readahe this->buf_size = DEFAULT_BUFFER_SIZE; } - this->buf = (char *)xine_xmalloc(this->buf_size); + this->buf = calloc(1, this->buf_size); if (!this->buf) { free (this); return NULL; |