Differences From:
File
src/checkin.c
part of check-in
[741aac4d4e]
- Regenerate the manifest.uuid file on a "commit".
by
drh on
2007-08-25 19:52:42.
[view]
To:
File
src/checkin.c
part of check-in
[1871a93dd4]
- Fix bugs that can cause a segfault if a blank check-in comment
is entered.
by
drh on
2007-08-30 18:05:19.
[view]
@@ -393,8 +393,11 @@
db_finalize(&q);
/* Create the manifest */
blob_zero(&manifest);
+ if( blob_size(&comment)==0 ){
+ blob_append(&comment, "(no comment)", -1);
+ }
blob_appendf(&manifest, "C %F\n", blob_str(&comment));
zDate = db_text(0, "SELECT datetime('now')");
zDate[10] = 'T';
blob_appendf(&manifest, "D %s\n", zDate);