Subversion Repositories RepoView

Rev

Rev 13 | Rev 30 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13 Rev 15
Line 1... Line 1...
1
/* $Id: sqlite.c 13 2024-08-21 12:31:40Z nishi $ */
1
/* $Id: sqlite.c 15 2024-08-21 15:36:37Z nishi $ */
2
 
2
 
3
#include "rv_db.h"
3
#include "rv_db.h"
4
 
4
 
5
#include "../../config.h"
5
#include "../../config.h"
6
 
6
 
Line 123... Line 123...
123
	free(esc);
123
	free(esc);
124
	ret = sqlite3_exec(sql, query, NULL, NULL, &err);
124
	ret = sqlite3_exec(sql, query, NULL, NULL, &err);
125
	if(ret != SQLITE_OK) {
125
	if(ret != SQLITE_OK) {
126
		sqlite3_free(err);
126
		sqlite3_free(err);
127
	}
127
	}
-
 
128
	rv_add_auth(username, password);
128
}
129
}
129
 
130
 
130
void rv_save_token(const char* username, const char* token) {
131
void rv_save_token(const char* username, const char* token) {
131
	char* err;
132
	char* err;
132
	int ret;
133
	int ret;