mirror of
https://github.com/transmission/transmission.git
synced 2026-04-25 11:20:18 +01:00
tiennou's fix for #463
This commit is contained in:
@@ -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 ) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user