Fossil SCM

Fix a bug triggering a failed assertion in blob_str() and dumping core when doing a 'fossil commit --no-prompt'.

danield 2021-02-04 15:52 trunk
Commit d1f74a367c73d92bb5dc9e25a07b2d5a16bd066f82bf7474f2b33629d6cdaf6e
1 file changed +2
--- src/checkin.c
+++ src/checkin.c
@@ -2515,10 +2515,12 @@
25152515
if( autosync_loop(syncFlags, db_get_int("autosync-tries", 1), 1) ){
25162516
fossil_fatal("Auto-pull failed. Commit aborted.");
25172517
}
25182518
bRecheck = 1;
25192519
}
2520
+ }else{
2521
+ blob_zero(&comment);
25202522
}
25212523
}while( bRecheck );
25222524
25232525
if( blob_size(&comment)==0 ){
25242526
if( !dryRunFlag ){
25252527
--- src/checkin.c
+++ src/checkin.c
@@ -2515,10 +2515,12 @@
2515 if( autosync_loop(syncFlags, db_get_int("autosync-tries", 1), 1) ){
2516 fossil_fatal("Auto-pull failed. Commit aborted.");
2517 }
2518 bRecheck = 1;
2519 }
 
 
2520 }
2521 }while( bRecheck );
2522
2523 if( blob_size(&comment)==0 ){
2524 if( !dryRunFlag ){
2525
--- src/checkin.c
+++ src/checkin.c
@@ -2515,10 +2515,12 @@
2515 if( autosync_loop(syncFlags, db_get_int("autosync-tries", 1), 1) ){
2516 fossil_fatal("Auto-pull failed. Commit aborted.");
2517 }
2518 bRecheck = 1;
2519 }
2520 }else{
2521 blob_zero(&comment);
2522 }
2523 }while( bRecheck );
2524
2525 if( blob_size(&comment)==0 ){
2526 if( !dryRunFlag ){
2527

Keyboard Shortcuts

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