diff options
author | Dan McGee <dan@archlinux.org> | 2011-01-19 19:00:39 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-01-21 16:14:47 +0100 |
commit | 01c8f39ab8db36ad7ac1c2078a8c1a5b7504192a (patch) | |
tree | b820fe3d07c7178af3f92c451a5c6572bf937753 /lib/libalpm/po/en_GB.po | |
parent | aff3e63c451ead18571a8abed56e911f71906fe6 (diff) | |
download | pacman-01c8f39ab8db36ad7ac1c2078a8c1a5b7504192a.tar.gz pacman-01c8f39ab8db36ad7ac1c2078a8c1a5b7504192a.tar.xz |
Improve depends string parsing
Remove the need for an unconditional string duplication by using pointer
arithmetic instead, and strndup() instead of an unspecified-length strdup().
This should reduce memory churn a fair amount as this is called pretty
frequently during database loads.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/po/en_GB.po')
0 files changed, 0 insertions, 0 deletions