Index: src/shun.c ================================================================== --- src/shun.c +++ src/shun.c @@ -43,12 +43,11 @@ int cnt = 0; const char *zUuid = P("uuid"); const char *zShun = P("shun"); const char *zAccept = P("accept"); const char *zRcvid = P("rcvid"); - int nRcvid; - int nUuid; + int nRcvid = 0; int numRows = 3; char *zCanonical = 0; login_check_credentials(); if( !g.perm.Admin ){ @@ -79,11 +78,11 @@ i++; } zCanonical[j+1] = zCanonical[j] = 0; p = zCanonical; while( *p ){ - nUuid = strlen(p); + int nUuid = strlen(p); if( nUuid!=UUID_SIZE || !validate16(p, nUuid) ){ @
Error: Bad artifact IDs.
fossil_free(zCanonical); zCanonical = 0; break; @@ -152,11 +151,12 @@ @ They will be removed from the repository the next time the repository @ is rebuilt using the fossil rebuild command-line } if( zRcvid ){ nRcvid = atoi(zRcvid); - numRows = db_int(0, "SELECT min(count(), 10) FROM blob WHERE rcvid=%d", nRcvid); + numRows = db_int(0, "SELECT min(count(), 10) FROM blob WHERE rcvid=%d", + nRcvid); } @A shunned artifact will not be pushed nor accepted in a pull and the @ artifact content will be purged from the repository the next time the @ repository is rebuilt. A list of shunned artifacts can be seen at the @ bottom of this page.
@@ -183,11 +183,11 @@ login_insert_csrf_secret(); @