fix keyClear, optimize keyCopy
authorMarkus Raab <elektra@markus-raab.org>
Sat, 12 Jan 2013 18:27:29 +0000 (19:27 +0100)
committerMarkus Raab <elektra@markus-raab.org>
Sat, 12 Jan 2013 18:27:29 +0000 (19:27 +0100)
commit703c363c59ad527b9f05c4717e3d44862d622b6c
treebc981210aa9edc4268d8dd342e194fdb8d1b64ea
parente392525e4e8491ccf6f2ee8495ee6334604123ec
fix keyClear, optimize keyCopy

keyClear now correctly handles reference counting
keyCopy is optimized to not double-set internal strings
(keyClear will do it anyway, no need to do it manually)
added missing testcases for keyClear
src/libelektra/key.c
tests/test_key.c