| | @@ -115,11 +115,10 @@ |
| 115 | 115 | ** Implement the "fossil bundle append BUNDLE FILE..." command. Add |
| 116 | 116 | ** the named files into the BUNDLE. Create the BUNDLE if it does not |
| 117 | 117 | ** alraedy exist. |
| 118 | 118 | */ |
| 119 | 119 | static void bundle_append_cmd(void){ |
| 120 | | - char *zFilename; |
| 121 | 120 | Blob content, hash; |
| 122 | 121 | int i; |
| 123 | 122 | Stmt q; |
| 124 | 123 | |
| 125 | 124 | verify_all_options(); |
| | @@ -164,11 +163,11 @@ |
| 164 | 163 | void subtree_from_arguments(const char *zTab){ |
| 165 | 164 | const char *zBr; |
| 166 | 165 | const char *zFrom; |
| 167 | 166 | const char *zTo; |
| 168 | 167 | const char *zCkin; |
| 169 | | - int rid, endRid; |
| 168 | + int rid = 0, endRid; |
| 170 | 169 | |
| 171 | 170 | zBr = find_option("branch",0,1); |
| 172 | 171 | zFrom = find_option("from",0,1); |
| 173 | 172 | zTo = find_option("to",0,1); |
| 174 | 173 | zCkin = find_option("checkin",0,1); |
| | @@ -539,11 +538,10 @@ |
| 539 | 538 | */ |
| 540 | 539 | static void bundle_import_cmd(void){ |
| 541 | 540 | int forceFlag = find_option("force","f",0)!=0; |
| 542 | 541 | int isPriv = find_option("publish",0,0)==0; |
| 543 | 542 | char *zMissingDeltas; |
| 544 | | - Stmt q; |
| 545 | 543 | verify_all_options(); |
| 546 | 544 | bundle_attach_file(g.argv[3], "b1", 1); |
| 547 | 545 | |
| 548 | 546 | /* Only import a bundle that was generated from a repo with the same |
| 549 | 547 | ** project code, unless the --force flag is true */ |
| | @@ -754,11 +752,10 @@ |
| 754 | 752 | ** fossil bundle ls BUNDLE List content of a bundle |
| 755 | 753 | ** fossil bundle purge BUNDLE Undo an import |
| 756 | 754 | */ |
| 757 | 755 | void bundle_cmd(void){ |
| 758 | 756 | const char *zSubcmd; |
| 759 | | - const char *zBundleFile; |
| 760 | 757 | int n; |
| 761 | 758 | if( g.argc<4 ) usage("SUBCOMMAND BUNDLE ?ARGUMENTS?"); |
| 762 | 759 | zSubcmd = g.argv[2]; |
| 763 | 760 | db_find_and_open_repository(0,0); |
| 764 | 761 | n = (int)strlen(zSubcmd); |
| 765 | 762 | |