Changeset 15970 in project


Ignore:
Timestamp:
09/19/09 20:05:47 (10 years ago)
Author:
sjamaan
Message:

Make string copy of svnwiki_user/svnwiki_pass, which is apparently necessary to produce working stuff.
I sure hope I didn't just introduce a memory leak... (the docs for svn _suck_)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/4/svn-client/trunk/svn-client.scm

    r15428 r15970  
    3232  svn_auth_cred_simple_t *cred;
    3333  *credentials = cred = apr_pcalloc(pool, sizeof(svn_auth_cred_simple_t));
    34   cred->username = svnwiki_user;
    35   cred->password = svnwiki_pass;
     34  cred->username = apr_pstrdup (pool, svnwiki_user);
     35  cred->password = apr_pstrdup (pool, svnwiki_pass);
    3636  cred->may_save = 0;
    3737  return 0;
     
    4343  svn_auth_cred_username_t *cred;
    4444  *credentials = cred = apr_pcalloc(pool, sizeof(svn_auth_cred_simple_t));
    45   cred->username = svnwiki_user;
     45  cred->username = apr_pstrdup (pool, svnwiki_user);
    4646  cred->may_save = 0;
    4747  return 0;
     
    304304      return(C_SCHEME_FALSE);
    305305    }
     306
    306307  if (!commit_info || commit_info->revision == SVN_INVALID_REVNUM)
    307308    return(C_SCHEME_TRUE);
     
    485486  svnwiki_user = user;
    486487  svnwiki_pass = pass;
     488
    487489  err = svn_client_add(path, 0, svn_ctx, svn_pool);
    488490  if (err)
Note: See TracChangeset for help on using the changeset viewer.