~ubuntu-branches/ubuntu/wily/aria2/wily-proposed

« back to all changes in this revision

Viewing changes to src/BencodeParser.cc

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry, Kartik Mistry, Patrick Ruckstuhl
  • Date: 2013-09-22 18:52:14 UTC
  • mfrom: (2.5.19 sid)
  • Revision ID: package-import@ubuntu.com-20130922185214-upeu2ljgeqi7e7oo
Tags: 1.18.0-1
[ Kartik Mistry ]
* New upstream release.
* debian/control:
  + (really) Set priority to optional from extra (Closes: #697659).
  + wrap-and-sort some fields.

[ Patrick Ruckstuhl ]
* debian/rules:
  + Allow parallel building (Closes: #720977)
* debian/tests, debian/control:
  + autopkgtest infrastructure

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 */
34
34
/* copyright --> */
35
35
#include "BencodeParser.h"
 
36
 
 
37
#include <cassert>
 
38
 
36
39
#include "StructParserStateMachine.h"
37
40
#include "util.h"
38
41
 
161
164
        i = j;
162
165
        currentState_ = BENCODE_STRING;
163
166
        if(strLength_ == 0) {
164
 
          runCharactersCallback(0, 0);
 
167
          runCharactersCallback(nullptr, 0);
165
168
          onStringEnd();
166
169
        }
167
170
      } else {