Pretty: fix use of uninitialised variable

The string chunk getter doesn't set ptr if there was an error
decoding. Instead, we need to deal with the error first.

Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
1 file changed