diff options
author | Dan McGee <dan@archlinux.org> | 2011-01-19 12:00:39 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-01-21 09:14:47 -0600 |
commit | 01c8f39ab8db36ad7ac1c2078a8c1a5b7504192a (patch) | |
tree | b820fe3d07c7178af3f92c451a5c6572bf937753 /doc/asciidoc.conf | |
parent | aff3e63c451ead18571a8abed56e911f71906fe6 (diff) | |
download | 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 'doc/asciidoc.conf')
0 files changed, 0 insertions, 0 deletions