summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/diskspace.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-09-19 20:43:13 +0200
committerDan McGee <dan@archlinux.org>2011-09-19 20:43:13 +0200
commitbfe36c2ddf869e2ebc44bec1e35c0319263ac386 (patch)
tree2e9020a22a4b2b6db6ddd90ef86954d1767c0f38 /lib/libalpm/diskspace.c
parente1899cbc64c6b634107f09c3a3e8152c63078636 (diff)
downloadpacman-bfe36c2ddf869e2ebc44bec1e35c0319263ac386.tar.gz
pacman-bfe36c2ddf869e2ebc44bec1e35c0319263ac386.tar.xz
Reduce path allocation on the stack in local database
We did a lot of both malloc-ing and stack printing to form some paths in this code. Attempt to unify it all into the one get_pkgpath() method by adding an optional third "filename" parameter, and form the necessary path string all in one go. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/diskspace.c')
0 files changed, 0 insertions, 0 deletions