| | @@ -600,11 +600,10 @@ |
| 600 | 600 | if( !allFileFlag && !dryRunFlag && !glob_match(pClean, zName+nRoot) ){ |
| 601 | 601 | Blob ans; |
| 602 | 602 | char cReply; |
| 603 | 603 | char *prompt = mprintf("Remove unmanaged file \"%s\" (a=all/y/N)? ", |
| 604 | 604 | zName+nRoot); |
| 605 | | - blob_zero(&ans); |
| 606 | 605 | prompt_user(prompt, &ans); |
| 607 | 606 | cReply = blob_str(&ans)[0]; |
| 608 | 607 | if( cReply=='a' || cReply=='A' ){ |
| 609 | 608 | allFileFlag = 1; |
| 610 | 609 | }else if( cReply!='y' && cReply!='Y' ){ |
| | @@ -642,11 +641,10 @@ |
| 642 | 641 | if( !allDirFlag && !dryRunFlag && !glob_match(pClean, zName+nRoot) ){ |
| 643 | 642 | Blob ans; |
| 644 | 643 | char cReply; |
| 645 | 644 | char *prompt = mprintf("Remove empty directory \"%s\" (a=all/y/N)? ", |
| 646 | 645 | zName+nRoot); |
| 647 | | - blob_zero(&ans); |
| 648 | 646 | prompt_user(prompt, &ans); |
| 649 | 647 | cReply = blob_str(&ans)[0]; |
| 650 | 648 | if( cReply=='a' || cReply=='A' ){ |
| 651 | 649 | allDirFlag = 1; |
| 652 | 650 | }else if( cReply!='y' && cReply!='Y' ){ |
| | @@ -1288,11 +1286,10 @@ |
| 1288 | 1286 | } |
| 1289 | 1287 | zWarning = "Unicode"; |
| 1290 | 1288 | zDisable = "\"encoding-glob\" setting"; |
| 1291 | 1289 | } |
| 1292 | 1290 | file_relative_name(zFilename, &fname, 0); |
| 1293 | | - blob_zero(&ans); |
| 1294 | 1291 | zMsg = mprintf( |
| 1295 | 1292 | "%s contains %s. Use --no-warnings or the %s to disable this warning.\n" |
| 1296 | 1293 | "Commit anyhow (a=all/%sy/N)? ", |
| 1297 | 1294 | blob_str(&fname), zWarning, zDisable, zConvert); |
| 1298 | 1295 | prompt_user(zMsg, &ans); |
| | @@ -1531,11 +1528,10 @@ |
| 1531 | 1528 | /* |
| 1532 | 1529 | ** Autosync if autosync is enabled and this is not a private check-in. |
| 1533 | 1530 | */ |
| 1534 | 1531 | if( !g.markPrivate ){ |
| 1535 | 1532 | if( autosync(SYNC_PULL) ){ |
| 1536 | | - blob_zero(&ans); |
| 1537 | 1533 | prompt_user("continue in spite of sync failure (y/N)? ", &ans); |
| 1538 | 1534 | cReply = blob_str(&ans)[0]; |
| 1539 | 1535 | if( cReply!='y' && cReply!='Y' ){ |
| 1540 | 1536 | fossil_exit(1); |
| 1541 | 1537 | } |
| | @@ -1544,11 +1540,10 @@ |
| 1544 | 1540 | |
| 1545 | 1541 | /* Require confirmation to continue with the check-in if there is |
| 1546 | 1542 | ** clock skew |
| 1547 | 1543 | */ |
| 1548 | 1544 | if( g.clockSkewSeen ){ |
| 1549 | | - blob_zero(&ans); |
| 1550 | 1545 | prompt_user("continue in spite of time skew (y/N)? ", &ans); |
| 1551 | 1546 | cReply = blob_str(&ans)[0]; |
| 1552 | 1547 | if( cReply!='y' && cReply!='Y' ){ |
| 1553 | 1548 | fossil_exit(1); |
| 1554 | 1549 | } |
| | @@ -1563,11 +1558,10 @@ |
| 1563 | 1558 | ** array is allocated to contain the "id" field from the vfile table |
| 1564 | 1559 | ** for each file to be committed. Or, if aCommitFile is NULL, all files |
| 1565 | 1560 | ** should be committed. |
| 1566 | 1561 | */ |
| 1567 | 1562 | if( select_commit_files() ){ |
| 1568 | | - blob_zero(&ans); |
| 1569 | 1563 | prompt_user("continue (y/N)? ", &ans); |
| 1570 | 1564 | cReply = blob_str(&ans)[0]; |
| 1571 | 1565 | if( cReply!='y' && cReply!='Y' ) fossil_exit(1);; |
| 1572 | 1566 | } |
| 1573 | 1567 | isAMerge = db_exists("SELECT 1 FROM vmerge WHERE id=0 OR id<-2"); |
| | @@ -1664,20 +1658,18 @@ |
| 1664 | 1658 | blob_zero(&comment); |
| 1665 | 1659 | }else{ |
| 1666 | 1660 | char *zInit = db_text(0, "SELECT value FROM vvar WHERE name='ci-comment'"); |
| 1667 | 1661 | prepare_commit_comment(&comment, zInit, &sCiInfo, vid); |
| 1668 | 1662 | if( zInit && zInit[0] && fossil_strcmp(zInit, blob_str(&comment))==0 ){ |
| 1669 | | - blob_zero(&ans); |
| 1670 | 1663 | prompt_user("unchanged check-in comment. continue (y/N)? ", &ans); |
| 1671 | 1664 | cReply = blob_str(&ans)[0]; |
| 1672 | 1665 | if( cReply!='y' && cReply!='Y' ) fossil_exit(1);; |
| 1673 | 1666 | } |
| 1674 | 1667 | free(zInit); |
| 1675 | 1668 | } |
| 1676 | 1669 | if( blob_size(&comment)==0 ){ |
| 1677 | 1670 | if( !dryRunFlag ){ |
| 1678 | | - blob_zero(&ans); |
| 1679 | 1671 | prompt_user("empty check-in comment. continue (y/N)? ", &ans); |
| 1680 | 1672 | cReply = blob_str(&ans)[0]; |
| 1681 | 1673 | if( cReply!='y' && cReply!='Y' ){ |
| 1682 | 1674 | fossil_exit(1); |
| 1683 | 1675 | } |
| | @@ -1806,11 +1798,10 @@ |
| 1806 | 1798 | }else if( forceDelta ){ |
| 1807 | 1799 | fossil_fatal("unable to find a baseline-manifest for the delta"); |
| 1808 | 1800 | } |
| 1809 | 1801 | } |
| 1810 | 1802 | if( !noSign && !g.markPrivate && clearsign(&manifest, &manifest) ){ |
| 1811 | | - blob_zero(&ans); |
| 1812 | 1803 | prompt_user("unable to sign manifest. continue (y/N)? ", &ans); |
| 1813 | 1804 | cReply = blob_str(&ans)[0]; |
| 1814 | 1805 | if( cReply!='y' && cReply!='Y' ){ |
| 1815 | 1806 | fossil_exit(1); |
| 1816 | 1807 | } |
| 1817 | 1808 | |