Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fix an incorrect malloc() associated with "fossil commit -v" |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
bf3a32f59e83b0297dc0e6938891cf00 |
User & Date: | drh 2021-11-14 19:38:05 |
References
2021-11-16
| ||
12:28 | Remove surplus comments mistakenly added to the end of some files by check-in [bf3a32f59e83b029] ... (check-in: f3bd05ca user: drh tags: trunk) | |
Context
2021-11-15
| ||
12:39 | Added --ingore-clock-skew option to checkin, per discussion in forum post 1ccad8679d0357b8 and /chat. ... (check-in: 93de7b27 user: stephan tags: trunk) | |
2021-11-14
| ||
19:38 | Fix an incorrect malloc() associated with "fossil commit -v" ... (check-in: bf3a32f5 user: drh tags: trunk) | |
2021-11-13
| ||
19:33 | Minor documentation tweaks. ... (check-in: 1eab9b69 user: drh tags: trunk) | |
Changes
Changes to src/checkin.c.
︙ | ︙ | |||
1347 1348 1349 1350 1351 1352 1353 | '#' ); diff_options(&DCfg, 0, 1); DCfg.diffFlags |= DIFF_VERBOSE; if( g.aCommitFile ){ FileDirList *diffFiles; int i; | > | | | | 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 | '#' ); diff_options(&DCfg, 0, 1); DCfg.diffFlags |= DIFF_VERBOSE; if( g.aCommitFile ){ FileDirList *diffFiles; int i; for(i=0; g.aCommitFile[i]!=0; ++i){} diffFiles = fossil_malloc_zero((i+1) * sizeof(*diffFiles)); for(i=0; g.aCommitFile[i]!=0; ++i){ diffFiles[i].zName = db_text(0, "SELECT pathname FROM vfile WHERE id=%d", g.aCommitFile[i]); if( fossil_strcmp(diffFiles[i].zName, "." )==0 ){ diffFiles[0].zName[0] = '.'; diffFiles[0].zName[1] = 0; break; } diffFiles[i].nName = strlen(diffFiles[i].zName); diffFiles[i].nUsed = 0; } diff_against_disk(0, &DCfg, diffFiles, &prompt); for( i=0; diffFiles[i].zName; ++i ){ fossil_free(diffFiles[i].zName); } fossil_free(diffFiles); }else{ diff_against_disk(0, &DCfg, 0, &prompt); } |
︙ | ︙ |
Changes to src/db.c.
︙ | ︙ | |||
4827 4828 4829 4830 4831 4832 4833 | zRepo = db_fingerprint(atoi(zCkout), 0); rc = fossil_strcmp(zCkout,zRepo)==0; fossil_free(zRepo); } fossil_free(zCkout); return rc; } | > | 4827 4828 4829 4830 4831 4832 4833 4834 | zRepo = db_fingerprint(atoi(zCkout), 0); rc = fossil_strcmp(zCkout,zRepo)==0; fossil_free(zRepo); } fossil_free(zCkout); return rc; } /*hi*/ |
Changes to src/main.c.
︙ | ︙ | |||
3308 3309 3310 3311 3312 3313 3314 | cgi_reset_content(); sqlite3_sleep(1100); } @ </ol> @ <p>End of test</p> style_finish_page(); } | > | 3308 3309 3310 3311 3312 3313 3314 3315 | cgi_reset_content(); sqlite3_sleep(1100); } @ </ol> @ <p>End of test</p> style_finish_page(); } /*hi*/ |
Changes to src/sync.c.
︙ | ︙ | |||
702 703 704 705 706 707 708 | }else{ fossil_fatal("backup \"%s\" already exists", zDest); } } db_unprotect(PROTECT_ALL); db_multi_exec("VACUUM repository INTO %Q", zDest); } | > | 702 703 704 705 706 707 708 709 | }else{ fossil_fatal("backup \"%s\" already exists", zDest); } } db_unprotect(PROTECT_ALL); db_multi_exec("VACUUM repository INTO %Q", zDest); } /*hi*/ |