Fossil SCM
fix a harmless compiler warning.
Commit
0e3f0cadc462d917e0ec776e2bdc3592d3637747
Parent
9b21984c4a2b9f0…
1 file changed
+1
-1
+1
-1
| --- src/bundle.c | ||
| +++ src/bundle.c | ||
| @@ -64,11 +64,11 @@ | ||
| 64 | 64 | zSql = sqlite3_mprintf("ATTACH %Q AS %Q", zFile, zBName); |
| 65 | 65 | if( zSql==0 ) fossil_fatal("out of memory"); |
| 66 | 66 | rc = sqlite3_exec(g.db, zSql, 0, 0, &zErrMsg); |
| 67 | 67 | sqlite3_free(zSql); |
| 68 | 68 | if( rc!=SQLITE_OK || zErrMsg ){ |
| 69 | - if( zErrMsg==0 ) zErrMsg = sqlite3_errmsg(g.db); | |
| 69 | + if( zErrMsg==0 ) zErrMsg = (char*)sqlite3_errmsg(g.db); | |
| 70 | 70 | fossil_fatal("not a valid bundle: %s", zFile); |
| 71 | 71 | } |
| 72 | 72 | if( doInit ){ |
| 73 | 73 | db_multi_exec(zBundleInit /*works-like:"%w%w"*/, zBName, zBName); |
| 74 | 74 | }else{ |
| 75 | 75 |
| --- src/bundle.c | |
| +++ src/bundle.c | |
| @@ -64,11 +64,11 @@ | |
| 64 | zSql = sqlite3_mprintf("ATTACH %Q AS %Q", zFile, zBName); |
| 65 | if( zSql==0 ) fossil_fatal("out of memory"); |
| 66 | rc = sqlite3_exec(g.db, zSql, 0, 0, &zErrMsg); |
| 67 | sqlite3_free(zSql); |
| 68 | if( rc!=SQLITE_OK || zErrMsg ){ |
| 69 | if( zErrMsg==0 ) zErrMsg = sqlite3_errmsg(g.db); |
| 70 | fossil_fatal("not a valid bundle: %s", zFile); |
| 71 | } |
| 72 | if( doInit ){ |
| 73 | db_multi_exec(zBundleInit /*works-like:"%w%w"*/, zBName, zBName); |
| 74 | }else{ |
| 75 |
| --- src/bundle.c | |
| +++ src/bundle.c | |
| @@ -64,11 +64,11 @@ | |
| 64 | zSql = sqlite3_mprintf("ATTACH %Q AS %Q", zFile, zBName); |
| 65 | if( zSql==0 ) fossil_fatal("out of memory"); |
| 66 | rc = sqlite3_exec(g.db, zSql, 0, 0, &zErrMsg); |
| 67 | sqlite3_free(zSql); |
| 68 | if( rc!=SQLITE_OK || zErrMsg ){ |
| 69 | if( zErrMsg==0 ) zErrMsg = (char*)sqlite3_errmsg(g.db); |
| 70 | fossil_fatal("not a valid bundle: %s", zFile); |
| 71 | } |
| 72 | if( doInit ){ |
| 73 | db_multi_exec(zBundleInit /*works-like:"%w%w"*/, zBName, zBName); |
| 74 | }else{ |
| 75 |