Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | minor simplification, and don't free zUuid if it was NULL |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
d6cb724e653611f69b673de4346883c3 |
| User & Date: | jan.nijtmans 2016-11-19 20:11:30.250 |
Context
|
2016-11-22
| ||
| 22:23 | Restore the -R option to the "fossil setting" command. ... (check-in: 5347e26326 user: drh tags: trunk) | |
| 21:54 | Possible fix for regression reported on mailing list. It looks like there is already a better fix in [9807a05d8a]. ... (Closed-Leaf check-in: 3cf8891e9d user: andybradford tags: settings-regression) | |
| 21:50 | Draft fix for 'settings' command issue when using the '-R' option. ... (Closed-Leaf check-in: 9807a05d8a user: mistachkin tags: settingRFix) | |
|
2016-11-19
| ||
| 20:11 | minor simplification, and don't free zUuid if it was NULL ... (check-in: d6cb724e65 user: jan.nijtmans tags: trunk) | |
| 17:50 | Avoid comparing a variable to NULL after the memory it is pointing to has been freed. This is harmless, as implemented, but it is technically undefined behavior in C. (This is a bug in the specification of the C language, imho.) ... (check-in: 4e126233ca user: drh tags: trunk) | |
Changes
Changes to src/info.c.
| ︙ | ︙ | |||
68 69 70 71 72 73 74 |
zDate = db_text(0,
"SELECT datetime(mtime) || ' UTC' FROM event WHERE objid=%d",
rid
);
/* 01234567890123 */
fossil_print("%-13s %s %s\n", zUuidName, zUuid, zDate ? zDate : "");
free(zDate);
| < | | | | | | | | | > | 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
zDate = db_text(0,
"SELECT datetime(mtime) || ' UTC' FROM event WHERE objid=%d",
rid
);
/* 01234567890123 */
fossil_print("%-13s %s %s\n", zUuidName, zUuid, zDate ? zDate : "");
free(zDate);
if( showComment ){
zComment = db_text(0,
"SELECT coalesce(ecomment,comment) || "
" ' (user: ' || coalesce(euser,user,'?') || ')' "
" FROM event WHERE objid=%d",
rid
);
}
free(zUuid);
}
if( showFamily ){
db_prepare(&q, "SELECT uuid, pid, isprim FROM plink JOIN blob ON pid=rid "
" WHERE cid=%d"
" ORDER BY isprim DESC, mtime DESC /*sort*/", rid);
while( db_step(&q)==SQLITE_ROW ){
const char *zUuid = db_column_text(&q, 0);
const char *zType = db_column_int(&q, 2) ? "parent:" : "merged-from:";
|
| ︙ | ︙ |