Fossil SCM

Fix the "fossil sqlar" command so that it works for the empty initial check-in.

drh 2017-12-08 00:07 trunk
Commit 3e2b5c4630aaf668e6810582cd30e8f7260259deb3bc594a674093791a39ac06
1 file changed +2 -1
+2 -1
--- src/zip.c
+++ src/zip.c
@@ -633,14 +633,15 @@
633633
634634
Archive sArchive;
635635
memset(&sArchive, 0, sizeof(Archive));
636636
sArchive.eType = eType;
637637
sArchive.pBlob = pZip;
638
+ blob_zero(&sArchive.tmp);
639
+ blob_zero(pZip);
638640
639641
content_get(rid, &mfile);
640642
if( blob_size(&mfile)==0 ){
641
- blob_zero(pZip);
642643
return;
643644
}
644645
blob_set_dynamic(&hash, rid_to_uuid(rid));
645646
blob_zero(&filename);
646647
zip_open();
647648
--- src/zip.c
+++ src/zip.c
@@ -633,14 +633,15 @@
633
634 Archive sArchive;
635 memset(&sArchive, 0, sizeof(Archive));
636 sArchive.eType = eType;
637 sArchive.pBlob = pZip;
 
 
638
639 content_get(rid, &mfile);
640 if( blob_size(&mfile)==0 ){
641 blob_zero(pZip);
642 return;
643 }
644 blob_set_dynamic(&hash, rid_to_uuid(rid));
645 blob_zero(&filename);
646 zip_open();
647
--- src/zip.c
+++ src/zip.c
@@ -633,14 +633,15 @@
633
634 Archive sArchive;
635 memset(&sArchive, 0, sizeof(Archive));
636 sArchive.eType = eType;
637 sArchive.pBlob = pZip;
638 blob_zero(&sArchive.tmp);
639 blob_zero(pZip);
640
641 content_get(rid, &mfile);
642 if( blob_size(&mfile)==0 ){
 
643 return;
644 }
645 blob_set_dynamic(&hash, rid_to_uuid(rid));
646 blob_zero(&filename);
647 zip_open();
648

Keyboard Shortcuts

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