Fossil

Check-in [ff79f97a07]
Login

Check-in [ff79f97a07]

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

Overview
Comment:Fix a NULL-pointer dereference in "branch new". Ticket [a4a9f45b67cbbcf26].
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: ff79f97a072ee1c1630ba1c26e53cbdda99cb1ab
User & Date: drh 2010-10-27 19:56:38.000
Context
2010-10-28
14:03
New higher-performance clone algorithm merged in from the experimental branch. ... (check-in: fda9b15cfc user: drh tags: trunk)
2010-10-27
19:56
Fix a NULL-pointer dereference in "branch new". Ticket [a4a9f45b67cbbcf26]. ... (check-in: ff79f97a07 user: drh tags: trunk)
11:54
Use delta encoding between baseline manifests separated by delta manifests. ... (check-in: e21ca81e1a user: drh tags: trunk)
Changes
Side-by-Side Diff Ignore Whitespace Patch
Changes to src/branch.c.
90
91
92
93
94
95
96
97

98
99
100
101
102
103
104
90
91
92
93
94
95
96

97
98
99
100
101
102
103
104







-
+







  blob_appendf(&branch, "D %s\n", zDate);

  /* Copy all of the content from the parent into the branch */
  for(i=0; i<pParent->nFile; ++i){
    blob_appendf(&branch, "F %F", pParent->aFile[i].zName);
    if( pParent->aFile[i].zUuid ){
      blob_appendf(&branch, " %s", pParent->aFile[i].zUuid);
      if( pParent->aFile[i].zPerm[0] ){
      if( pParent->aFile[i].zPerm && pParent->aFile[i].zPerm[0] ){
        blob_appendf(&branch, " %s", pParent->aFile[i].zPerm);
      }
    }
    blob_append(&branch, "\n", 1);
  }
  zUuid = db_text(0, "SELECT uuid FROM blob WHERE rid=%d", rootid);
  blob_appendf(&branch, "P %s\n", zUuid);