summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibaut Mattern <tmattern@users.sourceforge.net>2002-12-03 23:30:39 +0000
committerThibaut Mattern <tmattern@users.sourceforge.net>2002-12-03 23:30:39 +0000
commit66234a0e42d6cf3b1fd9b8a19e39c921a7289403 (patch)
tree5e1215a17097817daab9d4f35a0d3f86746d96fb
parent94cdf26f58ffeb4dd0c23712beee6a2830ecebd4 (diff)
downloadxine-lib-66234a0e42d6cf3b1fd9b8a19e39c921a7289403.tar.gz
xine-lib-66234a0e42d6cf3b1fd9b8a19e39c921a7289403.tar.bz2
Initialises mms_t struct (makes valgrind happy).
CVS patchset: 3419 CVS date: 2002/12/03 23:30:39
-rw-r--r--src/input/mms.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/input/mms.c b/src/input/mms.c
index 98f933d86..be4e19bf2 100644
--- a/src/input/mms.c
+++ b/src/input/mms.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: mms.c,v 1.14 2002/12/01 00:36:00 guenter Exp $
+ * $Id: mms.c,v 1.15 2002/12/03 23:30:39 tmattern Exp $
*
* based on work from major mms
* utility functions to handle communication with an mms server
@@ -72,7 +72,7 @@ struct mms_s {
char *url;
/* command to send */
- char scmd[CMD_HEADER_LEN+CMD_BODY_LEN];
+ char scmd[CMD_HEADER_LEN + CMD_BODY_LEN];
char *scmd_body; /* pointer to &scmd[CMD_HEADER_LEN] */
int scmd_len; /* num bytes written in header */
@@ -267,6 +267,7 @@ static int send_command (mms_t *this, int command, uint32_t switches,
#ifdef LOG
{
int i;
+ unsigned char c;
printf ("\nlibmms: ***************************************************\ncommand sent, %d bytes\n", length + 48);
@@ -281,7 +282,7 @@ static int send_command (mms_t *this, int command, uint32_t switches,
printf ("ascii contents>");
for (i = 48; i < (length + 48); i += 2) {
- unsigned char c = this->scmd[i];
+ c = this->scmd[i];
if ((c >= 32) && (c <= 128))
printf ("%c", c);
@@ -292,7 +293,7 @@ static int send_command (mms_t *this, int command, uint32_t switches,
printf ("libmms: complete hexdump of package follows:\n");
for (i = 0; i < (length + 48); i++) {
- unsigned char c = this->scmd[i];
+ c = this->scmd[i];
printf ("%02x", c);
@@ -718,7 +719,7 @@ mms_t *mms_connect (xine_stream_t *stream, const char *url_) {
report_progress (stream, 10);
- this = (mms_t*) malloc (sizeof (mms_t));
+ this = (mms_t*) xine_xmalloc (sizeof (mms_t));
this->url = url;
this->host = host;