Changeset 13703


Ignore:
Timestamp:
Dec 28, 2012, 5:28:37 AM (8 years ago)
Author:
jordan
Message:

#3833 'freespace' -- fix memset error.

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/session.c

    r13700 r13703  
    591591    session->tag = tr_strdup (tag);
    592592    session->magicNumber = SESSION_MAGIC_NUMBER;
    593     session->downloadDirBlkDev = tr_malloc (TR_PATH_MAX + 1);
    594     session->downloadDirFsType = tr_malloc (TR_PATH_MAX + 1);
    595593    tr_bandwidthConstruct (&session->bandwidth, session, NULL);
    596594    tr_peerIdInit (session->peer_id);
     
    970968
    971969int64_t
    972 tr_sessionGetDownloadDirFreeSpace (const tr_session * session)
    973 {
    974     assert (tr_isSession (session));
    975 
    976     return tr_getFreeSpace (session->downloadDir, session->downloadDirBlkDev,
    977     session->downloadDirFsType);
     970tr_sessionGetDownloadDirFreeSpace (tr_session * session)
     971{
     972    assert (tr_isSession (session));
     973
     974    return tr_getFreeSpace (session->downloadDir,
     975                            session->downloadDirBlkDev,
     976                            session->downloadDirFsType);
    978977}
    979978
     
    18851884    tr_free (session->torrentDir);
    18861885    tr_free (session->downloadDir);
    1887     tr_free (session->downloadDirBlkDev);
    1888     tr_free (session->downloadDirFsType);
    18891886    tr_free (session->incompleteDir);
    18901887    tr_free (session->blocklist_url);
  • trunk/libtransmission/transmission.h

    r13683 r13703  
    295295 * @return zero or positive integer on success, -1 in case of error.
    296296 */
    297 int64_t tr_sessionGetDownloadDirFreeSpace (const tr_session * session);
     297int64_t tr_sessionGetDownloadDirFreeSpace (tr_session * session);
    298298
    299299/**
Note: See TracChangeset for help on using the changeset viewer.