[vlc-commits] commit: httplive: remove dummy calloc (a call to strndup follows). ( Rémi Duraffort )
git at videolan.org
git at videolan.org
Sun Nov 7 22:49:55 CET 2010
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Nov 7 22:45:18 2010 +0100| [fc9935aa9c0d0d99a913ee67eb793bec7b1522f0] | committer: Rémi Duraffort
httplive: remove dummy calloc (a call to strndup follows).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fc9935aa9c0d0d99a913ee67eb793bec7b1522f0
---
modules/stream_filter/httplive.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index 9162b26..a809e59 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -1032,10 +1032,6 @@ static char *AccessReadLine(access_t *p_access, uint8_t *psz_tmp, size_t i_len)
p++;
}
- /* EOL */
- line = calloc(1, p - begin + 1);
- if (line == NULL)
- return NULL;
/* copy line excluding \n */
line = strndup(begin, p - begin);
More information about the vlc-commits
mailing list