updated format
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 10s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 12s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 12s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 10s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 12s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 12s
This commit is contained in:
1 parent
d6409140f1
commit
6c556624bd
23 files changed
+147
-113
No files matched your search
@@ -1,7 +1,8 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "database.h"
|
||||
#include "sql.h"
|
||||
#include "user.h"
|
||||
#include <string.h>
|
||||
|
||||
char *db_get_all_users() {
|
||||
pthread_mutex_lock(&db_mutex);
|
||||
@@ -40,9 +41,9 @@ char *db_get_all_users() {
|
||||
const unsigned char *group = sqlite3_column_text(stmt, 4);
|
||||
int is_superuser = sqlite3_column_int(stmt, 5);
|
||||
|
||||
char *escaped_username = json_escape((const char *) username);
|
||||
char *escaped_email = json_escape((const char *) email);
|
||||
char *escaped_group = json_escape((const char *) group);
|
||||
char *escaped_username = json_escape((const char *)username);
|
||||
char *escaped_email = json_escape((const char *)email);
|
||||
char *escaped_group = json_escape((const char *)group);
|
||||
if (!escaped_username || !escaped_email || !escaped_group) {
|
||||
free(escaped_username);
|
||||
free(escaped_email);
|
||||
|
||||
Reference in new issue
Block a user