list: fix uninitialized variable in list_add example.