Improve splitname memory allocation
commitc86ff120c870a2d0e0427567ae7449e23ad42954
authorDan McGee <dan@archlinux.org>
Wed, 19 Jan 2011 18:20:32 +0000 (19 12:20 -0600)
committerDan McGee <dan@archlinux.org>
Fri, 21 Jan 2011 15:14:47 +0000 (21 09:14 -0600)
treef1d4d4e178f65854192efd4698bffc5c5627428a
parent01c8f39ab8db36ad7ac1c2078a8c1a5b7504192a
Improve splitname memory allocation

We don't need to create a temporary copy of the string if we are smart with
our pointer manipulation and string copying. This saves a bunch of string
duplication during database parsing, both local and sync.

Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/util.c