1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00
pacman/lib/libalpm
Dan McGee bf56fb6eb8 alpm_list: use malloc instead of calloc
In every case we were calling calloc, the struct we allocated (or the
memory to be used) is fully specified later in the method.

For alpm_list_t allocations, we always set all of data, next, and prev.

For list copying and transforming to an array, we always copy the entire
data element, so no need to zero it first.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-09-27 17:49:27 -05:00
..
po Regenerate message catalogs and translations 2011-09-22 11:36:09 -05:00
.gitignore Remove unnecessary entries from .gitignore files 2007-07-16 16:49:28 -04:00
add.c Remove noisy debug logger 2011-09-21 13:02:35 -05:00
add.h Rename pmhandle_t to alpm_handle_t 2011-06-28 14:04:00 +10:00
alpm_list.c alpm_list: use malloc instead of calloc 2011-09-27 17:49:27 -05:00
alpm_list.h Convert package filelists to an array instead of linked list 2011-07-21 15:04:30 -05:00
alpm.c Update Doxyfile and fix some documentation errors caught by Doxygen 2011-09-22 16:37:36 -05:00
alpm.h Update Doxyfile and fix some documentation errors caught by Doxygen 2011-09-22 16:37:36 -05:00
backup.c Allow fileconflict if unowned file moving into backup array 2011-07-14 15:34:04 -05:00
backup.h Allow fileconflict if unowned file moving into backup array 2011-07-14 15:34:04 -05:00
base64.c Update base64 PolarSSL code 2011-08-15 06:24:49 -05:00
base64.h Update base64 PolarSSL code 2011-08-15 06:24:49 -05:00
be_local.c Reduce path allocation on the stack in local database 2011-09-19 13:43:13 -05:00
be_package.c Add _alpm_process_siglist() logic to failed package validation 2011-09-22 10:35:52 -05:00
be_sync.c Ensure database validity flags are set in invalid signature case 2011-09-22 16:01:11 -05:00
conflict.c Ensure fileconflict value is actually a string 2011-09-26 17:36:29 -05:00
conflict.h Convert package filelists to an array instead of linked list 2011-07-21 15:04:30 -05:00
db.c Access db->pkgcache directly in db_free_pkgcache() 2011-09-20 10:23:10 -05:00
db.h Enhance and utilize database status flags 2011-08-18 10:47:41 -05:00
delta.c account for partial delta files in download size 2011-09-11 19:10:48 -05:00
delta.h Rename pmdelta_t to alpm_delta_t 2011-06-28 23:28:23 +10:00
deps.c Update Doxyfile and fix some documentation errors caught by Doxygen 2011-09-22 16:37:36 -05:00
deps.h Be more robust when copying package data 2011-08-19 11:09:57 -05:00
diskspace.c diskspace: fix memory leak on root mount not found 2011-09-08 14:18:19 -05:00
diskspace.h Use more correct integer types in diskspace checks 2011-09-07 21:05:04 -05:00
dload.c dload: avoid using memrchr 2011-09-18 16:57:59 -05:00
dload.h Use off_t rather than double where possible 2011-08-25 16:09:52 -05:00
error.c Attempt to fix up some of the brokenness around failed package loads 2011-08-08 19:42:52 -05:00
graph.c Rename pmgraph_t to alpm_graph_t 2011-06-28 23:28:24 +10:00
graph.h Rename pmgraph_t to alpm_graph_t 2011-06-28 23:28:24 +10:00
group.c Rename internal functions with grp in their name 2011-06-29 15:52:33 +10:00
group.h Rename internal functions with grp in their name 2011-06-29 15:52:33 +10:00
handle.c Move default siglevel value from backend to frontend 2011-09-22 10:32:30 -05:00
handle.h Former transaction callback rename refactor 2011-09-02 21:45:08 -05:00
log.c Prefix _alpm_errno_t members with ALPM 2011-07-02 02:01:39 +10:00
log.h Rename pmloglevel_t to alpm_loglevel_t 2011-06-28 23:28:24 +10:00
Makefile.am Add sha2 (sha256) routines from PolarSSL 2011-08-15 07:07:13 -05:00
md5.c Update MD5 routines with changes from PolarSSL 2011-08-11 20:17:21 -05:00
md5.h Update MD5 routines with changes from PolarSSL 2011-08-11 20:17:21 -05:00
package.c Remove all usages of alpm_list_getdata() from the library 2011-09-20 10:23:10 -05:00
package.h Pass package signature data up one more level 2011-09-20 10:23:11 -05:00
pkghash.c alpm_list: use malloc instead of calloc 2011-09-27 17:49:27 -05:00
pkghash.h Rename pmpkghash_t to alpm_pkghash_t 2011-06-28 23:28:24 +10:00
rawstr.c include util.h in rawstr.c 2011-07-05 22:36:40 -05:00
remove.c Be smarter about running ldconfig during removal transactions 2011-09-19 13:18:42 -05:00
remove.h Be smarter about running ldconfig during removal transactions 2011-09-19 13:18:42 -05:00
sha2.c Add sha2 (sha256) routines from PolarSSL 2011-08-15 07:07:13 -05:00
sha2.h Add sha2 (sha256) routines from PolarSSL 2011-08-15 07:07:13 -05:00
signing.c Fix compilation using --without-gpgme 2011-09-27 09:15:36 -05:00
signing.h signing: add a process and retry loop for database signatures 2011-09-20 10:23:11 -05:00
sync.c Delay check for repository servers until we need them 2011-09-27 07:53:38 -05:00
sync.h Rename pmhandle_t to alpm_handle_t 2011-06-28 14:04:00 +10:00
trans.c _alpm_runscriptlet(): remove clean_tmpdir variable 2011-09-20 10:23:10 -05:00
trans.h Move all callbacks up to the handle level 2011-09-02 21:45:03 -05:00
util.c Remove all usages of alpm_list_getdata() from the library 2011-09-20 10:23:10 -05:00
util.h _alpm_parsedate(): return time_t and not long 2011-09-01 12:36:11 -05:00
version.c vercmp: ensure 2.0a and 2.0.a do not compare equal 2011-08-23 01:49:29 -05:00