diff options
author | cboesch <cboesch@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-12-19 14:19:04 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2011-01-29 02:50:00 +0200 |
commit | b11e69b22a23116f795e5dbb8b5d63bbef1047c5 (patch) | |
tree | 6cdf79814c20c54efc4a249e7341e26cc0603218 /stream/http.c | |
parent | 7c8cb100afd0186766f8c7f0f4ce069845ba845a (diff) | |
download | mpv-b11e69b22a23116f795e5dbb8b5d63bbef1047c5.tar.bz2 mpv-b11e69b22a23116f795e5dbb8b5d63bbef1047c5.tar.xz |
cleanup: Replace two malloc+memset with calloc.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32723 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/http.c')
-rw-r--r-- | stream/http.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/stream/http.c b/stream/http.c index 1e7b8dab76..65abe90677 100644 --- a/stream/http.c +++ b/stream/http.c @@ -300,9 +300,8 @@ HTTP_header_t * http_new_header(void) { HTTP_header_t *http_hdr; - http_hdr = malloc(sizeof(HTTP_header_t)); + http_hdr = calloc(1, sizeof(*http_hdr)); if( http_hdr==NULL ) return NULL; - memset( http_hdr, 0, sizeof(HTTP_header_t) ); return http_hdr; } |