raw() werks
This commit is contained in:
parent
3f8f3a227a
commit
82ee6d5cdb
@ -115,7 +115,7 @@ DECL char *
|
||||
raw(const char * const sql)
|
||||
{
|
||||
char* errmsg;
|
||||
char* r = (char*)malloc(10000);
|
||||
char* r = (char*)calloc(sizeof(char), 10000); // TODO: allow for reallocing in rtos, start with a smaller value
|
||||
DBUSERERR(sqlite3_exec(connection, sql, rtos, &r, &errmsg));
|
||||
if (errmsg){
|
||||
free(r);
|
||||
|
Reference in New Issue
Block a user