Fossil SCM

Oops, forgot to zero the blob.

jan.nijtmans 2013-06-21 14:46 trunk
Commit d09e37387857ef48be68f77a91cc5e1b64bba115
1 file changed +1
--- src/checkin.c
+++ src/checkin.c
@@ -43,10 +43,11 @@
4343
Blob rewrittenPathname;
4444
Blob where;
4545
const char *zTreeName;
4646
int i, nRoot;
4747
48
+ blob_zero(&where);
4849
nRoot = (int)strlen(g.zLocalRoot);
4950
for(i=2; i<g.argc; i++) {
5051
Blob fname;
5152
file_canonical_name(g.argv[i], &fname, 0);
5253
zTreeName = blob_str(&fname)+nRoot;
5354
--- src/checkin.c
+++ src/checkin.c
@@ -43,10 +43,11 @@
43 Blob rewrittenPathname;
44 Blob where;
45 const char *zTreeName;
46 int i, nRoot;
47
 
48 nRoot = (int)strlen(g.zLocalRoot);
49 for(i=2; i<g.argc; i++) {
50 Blob fname;
51 file_canonical_name(g.argv[i], &fname, 0);
52 zTreeName = blob_str(&fname)+nRoot;
53
--- src/checkin.c
+++ src/checkin.c
@@ -43,10 +43,11 @@
43 Blob rewrittenPathname;
44 Blob where;
45 const char *zTreeName;
46 int i, nRoot;
47
48 blob_zero(&where);
49 nRoot = (int)strlen(g.zLocalRoot);
50 for(i=2; i<g.argc; i++) {
51 Blob fname;
52 file_canonical_name(g.argv[i], &fname, 0);
53 zTreeName = blob_str(&fname)+nRoot;
54

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button