Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Revert [48499514cc], changing nUsed to zero is not redundant as blob_append() changes it to one. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
4742716fc16c713eb296c29902c0267e |
User & Date: | mistachkin 2015-05-19 19:22:08.521 |
Context
2015-05-23
| ||
10:12 | Update the built-in SQLite to version 3.8.10.2. ... (check-in: 36c457b0 user: drh tags: trunk) | |
2015-05-20
| ||
11:45 | Merge trunk ... (check-in: 9f507ffe user: jan.nijtmans tags: sync-forkwarn) | |
2015-05-19
| ||
19:22 | Revert [48499514cc], changing nUsed to zero is not redundant as blob_append() changes it to one. ... (check-in: 4742716f user: mistachkin tags: trunk) | |
10:24 | Enhancements to the /reports interface, including improved filtering by user. ... (check-in: 16ab6ee8 user: drh tags: trunk) | |
Changes
Changes to src/blob.c.
︙ | ︙ | |||
298 299 300 301 302 303 304 | /* ** Return a pointer to a null-terminated string for a blob. */ char *blob_str(Blob *p){ blob_is_init(p); if( p->nUsed==0 ){ | | > | 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 | /* ** Return a pointer to a null-terminated string for a blob. */ char *blob_str(Blob *p){ blob_is_init(p); if( p->nUsed==0 ){ blob_append(p, "", 1); /* NOTE: Changes nUsed. */ p->nUsed = 0; } if( p->aData[p->nUsed]!=0 ){ blob_materialize(p); } return p->aData; } |
︙ | ︙ |