diff --git a/libtransmission/rpc-server.c b/libtransmission/rpc-server.c index 0ee05cfe5..7414106ef 100644 --- a/libtransmission/rpc-server.c +++ b/libtransmission/rpc-server.c @@ -227,7 +227,8 @@ tr_rpcSetACL( tr_rpc_server * server, const char * acl, char ** setme_errmsg ) if( errmsg ) { - *setme_errmsg = errmsg; + if( setme_errmsg ) + *setme_errmsg = errmsg; ret = -1; } else