Fossil SCM
const-correctness tweak in db_text().
Commit
30431ff9035a78713f1171ce9329e824aa4ebfff
Parent
36384da86173c72…
1 file changed
+1
-1
M
src/db.c
+1
-1
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -578,11 +578,11 @@ | ||
| 578 | 578 | ** Execute a query. Return the first column of the first row |
| 579 | 579 | ** of the result set as a string. Space to hold the string is |
| 580 | 580 | ** obtained from malloc(). If the result set is empty, return |
| 581 | 581 | ** zDefault instead. |
| 582 | 582 | */ |
| 583 | -char *db_text(char *zDefault, const char *zSql, ...){ | |
| 583 | +char *db_text(char const *zDefault, const char *zSql, ...){ | |
| 584 | 584 | va_list ap; |
| 585 | 585 | Stmt s; |
| 586 | 586 | char *z; |
| 587 | 587 | va_start(ap, zSql); |
| 588 | 588 | db_vprepare(&s, 0, zSql, ap); |
| 589 | 589 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -578,11 +578,11 @@ | |
| 578 | ** Execute a query. Return the first column of the first row |
| 579 | ** of the result set as a string. Space to hold the string is |
| 580 | ** obtained from malloc(). If the result set is empty, return |
| 581 | ** zDefault instead. |
| 582 | */ |
| 583 | char *db_text(char *zDefault, const char *zSql, ...){ |
| 584 | va_list ap; |
| 585 | Stmt s; |
| 586 | char *z; |
| 587 | va_start(ap, zSql); |
| 588 | db_vprepare(&s, 0, zSql, ap); |
| 589 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -578,11 +578,11 @@ | |
| 578 | ** Execute a query. Return the first column of the first row |
| 579 | ** of the result set as a string. Space to hold the string is |
| 580 | ** obtained from malloc(). If the result set is empty, return |
| 581 | ** zDefault instead. |
| 582 | */ |
| 583 | char *db_text(char const *zDefault, const char *zSql, ...){ |
| 584 | va_list ap; |
| 585 | Stmt s; |
| 586 | char *z; |
| 587 | va_start(ap, zSql); |
| 588 | db_vprepare(&s, 0, zSql, ap); |
| 589 |