Changeset 6856


Ignore:
Timestamp:
Oct 6, 2008, 4:33:33 PM (13 years ago)
Author:
charles
Message:

(rpc) slightly better errno handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/rpc-server.c

    r6855 r6856  
    302302        else
    303303        {
    304             struct evbuffer * out = evbuffer_new( );
    305 
     304            struct evbuffer * out;
     305
     306            errno = error;
     307            out = evbuffer_new( );
    306308            evhttp_add_header( req->output_headers, "Content-Type",
    307309                               mimetype_guess( filename ) );
     
    309311            evhttp_send_reply( req, HTTP_OK, "OK", out );
    310312
    311             errno = error;
    312313            evbuffer_free( out );
    313314            tr_free( content );
Note: See TracChangeset for help on using the changeset viewer.