Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/trans.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2008-09-02 12:27:32 -0500
committerDan McGee <dan@archlinux.org>2008-09-03 09:36:31 -0500
commitda933c223eedb66c51b4a48b6ab0ce8fcb344b5c (patch)
treed6fd702a500822d35bffc9f9d7f093f5031ff2f4 /lib/libalpm/trans.c
parent1c47500ea6d41bf9354155fca2e7c83fca368e1d (diff)
Remove unnecessary initialization in new functions
We don't need to zero things out, we are already using calloc for this purpose. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/trans.c')
-rw-r--r--lib/libalpm/trans.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c
index d6b165d3..d2336454 100644
--- a/lib/libalpm/trans.c
+++ b/lib/libalpm/trans.c
@@ -227,15 +227,6 @@ pmtrans_t *_alpm_trans_new()
ALPM_LOG_FUNC;
CALLOC(trans, 1, sizeof(pmtrans_t), RET_ERR(PM_ERR_MEMORY, NULL));
-
- trans->packages = NULL;
- trans->skip_add = NULL;
- trans->skip_remove = NULL;
- trans->type = 0;
- trans->flags = 0;
- trans->cb_event = NULL;
- trans->cb_conv = NULL;
- trans->cb_progress = NULL;
trans->state = STATE_IDLE;
return(trans);