Fix an uninitialized variable

The str variable may be freed without ever having been set
here, if we take one of the early gotos. This is showing up
as a frequent crash in Fedoras retrace server:

https://bugzilla.redhat.com/show_bug.cgi?id=1148522