[PATCH 11/13] lib: use struct zero initializer instead of memset