changeset 473:e1e98289c1ab trunk

[svn] - use g_new0
author nenolod
date Sun, 21 Jan 2007 02:18:37 -0800
parents 69b8baad0b24
children f5191cefba2a
files ChangeLog src/curl/curl.c
diffstat 2 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Jan 21 02:16:17 2007 -0800
+++ b/ChangeLog	Sun Jan 21 02:18:37 2007 -0800
@@ -1,3 +1,11 @@
+2007-01-21 10:16:17 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [1030]
+  - stuff from vfs_get_metadata is already strdup'd
+  
+  trunk/src/mpg123/common.c |    2 +-
+  1 file changed, 1 insertion(+), 1 deletion(-)
+
+
 2007-01-21 10:15:05 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [1028]
   - remove http.c
--- a/src/curl/curl.c	Sun Jan 21 02:16:17 2007 -0800
+++ b/src/curl/curl.c	Sun Jan 21 02:18:37 2007 -0800
@@ -463,9 +463,9 @@
 
   sprintf(url, "http://%s", path);
 
-  file = g_new(VFSFile, 1);
+  file = g_new0(VFSFile, 1);
 
-  handle = g_new(CurlHandle, 1);
+  handle = g_new0(CurlHandle, 1);
   handle->curl = curl_easy_init();
   handle->rd_index = 0;
   handle->wr_index = 0;