Fixed initialization to remove copy and remove allocation error

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>