~cmiller/ubuntu/trusty/icewm/translations-cause-crash-lp447883

« back to all changes in this revision

Viewing changes to src/ypaths.cc

  • Committer: Bazaar Package Importer
  • Author(s): Eduard Bloch
  • Date: 2009-01-26 00:18:14 UTC
  • mfrom: (1.3.1 upstream) (5.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090126001814-ea5ceoy4uroruz72
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
 
44
44
    if (other.fPaths) {
45
45
        unsigned peCount(0);
46
 
        for (YPathElement const * pe(other.fPaths); pe->root; ++pe, ++peCount);
 
46
        for (YPathElement const * pe(other.fPaths); pe->root; ++pe, ++peCount) {}
47
47
 
48
48
        fPaths = new YPathElement[peCount];
49
49
        memcpy(fPaths, other.fPaths, peCount * sizeof(YPathElement));