[ostree] repo-pull: Allocate with g_new0 rather than g_new.
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] repo-pull: Allocate with g_new0 rather than g_new.
- Date: Thu, 26 Sep 2013 18:39:20 +0000 (UTC)
commit 2ef652439d001ab70fc6000d43a7d0b0bb9ddb8a
Author: Colin Walters <walters verbum org>
Date: Thu Sep 26 14:38:37 2013 -0400
repo-pull: Allocate with g_new0 rather than g_new.
Conflicts:
src/libostree/ostree-repo-pull.c
src/libostree/ostree-repo-pull.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libostree/ostree-repo-pull.c b/src/libostree/ostree-repo-pull.c
index b52e19d..416e3b1 100644
--- a/src/libostree/ostree-repo-pull.c
+++ b/src/libostree/ostree-repo-pull.c
@@ -994,7 +994,7 @@ enqueue_one_object_request (OtPullData *pull_data,
pull_data->n_outstanding_content_fetches++;
pull_data->n_requested_content++;
}
- fetch_data = g_new (FetchObjectData, 1);
+ fetch_data = g_new0 (FetchObjectData, 1);
fetch_data->pull_data = pull_data;
fetch_data->object = g_variant_ref (object_name);
fetch_data->is_detached_meta = is_detached_meta;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]