Fix cppcheck issue "examples/client.cpp:33: Variable 'contents' is assigned a value that is never used.".