summaryrefslogtreecommitdiff
path: root/http-push.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-04-04 00:23:36 -0700
committerJunio C Hamano <junkio@cox.net>2006-04-04 00:23:36 -0700
commit00cbdec981e186264dc2529edce31da4bcbd41f3 (patch)
treed1c0436f5087526442b6e35e619daf33c4ccde97 /http-push.c
parentb411fda15df4897a1308bbb5950088ea6138cbad (diff)
parent90321c106ca6e36c0e884ca677c9a52dea47bdde (diff)
downloadgit-00cbdec981e186264dc2529edce31da4bcbd41f3.tar.gz
Merge branch 'pe/cleanup' into next
* pe/cleanup: Replace xmalloc+memset(0) with xcalloc. Use blob_, commit_, tag_, and tree_type throughout.
Diffstat (limited to 'http-push.c')
-rw-r--r--http-push.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/http-push.c b/http-push.c
index ba7d9de234..b60fa8d241 100644
--- a/http-push.c
+++ b/http-push.c
@@ -1008,8 +1008,7 @@ static int fetch_indices(void)
struct active_request_slot *slot;
struct slot_results results;
- data = xmalloc(4096);
- memset(data, 0, 4096);
+ data = xcalloc(1, 4096);
buffer.size = 4096;
buffer.posn = 0;
buffer.buffer = data;
@@ -2042,8 +2041,7 @@ static void update_remote_info_refs(struct remote_lock *lock)
char *if_header;
struct curl_slist *dav_headers = NULL;
- buffer.buffer = xmalloc(4096);
- memset(buffer.buffer, 0, 4096);
+ buffer.buffer = xcalloc(1, 4096);
buffer.size = 4096;
buffer.posn = 0;
remote_ls("refs/", (PROCESS_FILES | RECURSIVE),