MCPcopy Create free account
hub / github.com/audacity/audacity / save_err_msg

Function save_err_msg

lib-src/sqlite/shell.c:12664–12673  ·  view source on GitHub ↗

** Allocate space and save off current error string. */

Source from the content-addressed store, hash-verified

12662** Allocate space and save off current error string.
12663*/
12664static char *save_err_msg(
12665 sqlite3 *db /* Database to query */
12666){
12667 int nErrMsg = 1+strlen30(sqlite3_errmsg(db));
12668 char *zErrMsg = sqlite3_malloc64(nErrMsg);
12669 if( zErrMsg ){
12670 memcpy(zErrMsg, sqlite3_errmsg(db), nErrMsg);
12671 }
12672 return zErrMsg;
12673}
12674
12675#ifdef __linux__
12676/*

Callers 1

shell_execFunction · 0.85

Calls 1

strlen30Function · 0.85

Tested by

no test coverage detected