update: avoid one array allocation.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>