Fossil

Check-in [5dd5d39e]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Avoid a valgrind warning in the side-by-side diff logic.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | branch-1.22
Files: files | file ages | folders
SHA1: 5dd5d39e7cc76dccd77f881eaedbf693d0a0a667
User & Date: drh 2012-03-19 12:45:47
References
2012-03-27
04:16 New ticket [24b002f7] Windows: Operating fossil from a read-only directory says it is 'not within an open checkout'. artifact: 3619967a user: altufaltu
2012-03-22
04:13 New ticket [205152fe] Fossil command test-move-repository should run without access to repository. artifact: efc9e3fa user: altufaltu
Context
2012-03-19
12:45
Avoid a valgrind warning in the side-by-side diff logic. Closed-Leaf check-in: 5dd5d39e user: drh tags: branch-1.22
2012-03-17
17:53
Version 1.22 check-in: f7e215bc user: drh tags: trunk, release, version-1.22
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/diff.c.

879
880
881
882
883
884
885

886
887
888
889
890
891
892
  int na, nb;   /* Number of lines shown from A and B */
  int i, j;     /* Loop counters */
  int m, ma, mb;/* Number of lines to output */
  int skip;     /* Number of lines to skip */
  int nChunk = 0; /* Number of chunks of diff output seen so far */
  SbsLine s;    /* Output line buffer */


  s.zLine = fossil_malloc( 10*width + 200 );
  if( s.zLine==0 ) return;
  s.width = width;
  s.escHtml = escHtml;
  s.iStart = -1;
  s.iEnd = -1;
  A = p->aFrom;







>







879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
  int na, nb;   /* Number of lines shown from A and B */
  int i, j;     /* Loop counters */
  int m, ma, mb;/* Number of lines to output */
  int skip;     /* Number of lines to skip */
  int nChunk = 0; /* Number of chunks of diff output seen so far */
  SbsLine s;    /* Output line buffer */

  memset(&s, 0, sizeof(s));
  s.zLine = fossil_malloc( 10*width + 200 );
  if( s.zLine==0 ) return;
  s.width = width;
  s.escHtml = escHtml;
  s.iStart = -1;
  s.iEnd = -1;
  A = p->aFrom;