tiennou's fix for #463

This commit is contained in:
Charles Kerr
2007-11-12 15:08:58 +00:00
parent 4218de225f
commit dfba59b97a
2 changed files with 3 additions and 2 deletions

View File

@@ -761,7 +761,7 @@ ipc_addstat( benc_val_t * list, int tor,
error = st->error;
if( TR_OK == error )
{
tr_bencInitStr( item, NULL, 0, 1 );
tr_bencInitStr( item, "other", -1, 1 );
}
else if( TR_ERROR_ISSET( TR_ERROR_ASSERT, error ) )
{
@@ -803,7 +803,7 @@ ipc_addstat( benc_val_t * list, int tor,
case IPC_ST_ERRMSG:
if( '\0' == st->errorString[0] )
{
tr_bencInitStr( item, NULL, 0, 1 );
tr_bencInitStr( item, "other", -1, 1 );
}
else if( tr_bencInitStrDup( item, st->errorString ) )
{