[bugfix] check of successful memory-allocation of a element of a stringar

[bugfix] check of successful memory-allocation of a element of a stringarray

Signed-off-by: S. Fricke <sfricke@bdt-online.de>