~ubuntu-branches/ubuntu/natty/transmission/natty

« back to all changes in this revision

Viewing changes to libtransmission/magnet.c

  • Committer: Bazaar Package Importer
  • Author(s): Krzysztof Klimonda
  • Date: 2010-11-22 17:12:14 UTC
  • mfrom: (1.1.40 upstream) (2.1.25 experimental)
  • Revision ID: james.westby@ubuntu.com-20101122171214-awf9ejuo8v5mgi1i
Tags: 2.12-0ubuntu1
* New upstream release, merged 2.11-1 from Debian experimental
* Remove 0101-fix_dso_linking.patch which has been applied upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 * This exemption does not extend to derived works not owned by
8
8
 * the Transmission project.
9
9
 *
10
 
 * $Id: magnet.c 11280 2010-10-01 13:33:39Z charles $
 
10
 * $Id: magnet.c 11350 2010-10-24 05:52:38Z charles $
11
11
 */
12
12
 
13
13
#include <assert.h>
133
133
            else
134
134
                vallen = strlen( val );
135
135
 
136
 
            if( ( keylen==2 ) && !memcmp( key, "xt", 2 ) && !memcmp( val, "urn:btih:", 9 ) )
 
136
            if( ( keylen==2 ) && !memcmp( key, "xt", 2 ) && val && !memcmp( val, "urn:btih:", 9 ) )
137
137
            {
138
138
                const char * hash = val + 9;
139
139
                const int hashlen = vallen - 9;