Fossil SCM

Check for valid value from return of function.

andybradford 2023-11-27 06:14 clone-resume
Commit 2f0aac8c01a393ccc834982673e29f34632a4c49f1b244090e2f919105215b61
1 file changed +1 -1
+1 -1
--- src/xfer.c
+++ src/xfer.c
@@ -2001,11 +2001,11 @@
20012001
&& configSendMask==0
20022002
){
20032003
return 0; /* Nothing to do */
20042004
}
20052005
2006
- if( (syncFlags & SYNC_CLONE)==0 && db_get_int("aux-clone-seqno",0) ){
2006
+ if( (syncFlags & SYNC_CLONE)==0 && db_get_int("aux-clone-seqno",0)>0 ){
20072007
fossil_fatal("Unable to synchronize due to incomplete clone.");
20082008
}else{
20092009
cloneSeqno = db_get_int("aux-clone-seqno",1);
20102010
}
20112011
20122012
--- src/xfer.c
+++ src/xfer.c
@@ -2001,11 +2001,11 @@
2001 && configSendMask==0
2002 ){
2003 return 0; /* Nothing to do */
2004 }
2005
2006 if( (syncFlags & SYNC_CLONE)==0 && db_get_int("aux-clone-seqno",0) ){
2007 fossil_fatal("Unable to synchronize due to incomplete clone.");
2008 }else{
2009 cloneSeqno = db_get_int("aux-clone-seqno",1);
2010 }
2011
2012
--- src/xfer.c
+++ src/xfer.c
@@ -2001,11 +2001,11 @@
2001 && configSendMask==0
2002 ){
2003 return 0; /* Nothing to do */
2004 }
2005
2006 if( (syncFlags & SYNC_CLONE)==0 && db_get_int("aux-clone-seqno",0)>0 ){
2007 fossil_fatal("Unable to synchronize due to incomplete clone.");
2008 }else{
2009 cloneSeqno = db_get_int("aux-clone-seqno",1);
2010 }
2011
2012

Keyboard Shortcuts

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