#include "ClientSocket.h"
#include "bots.h"
#include "ConfigParser.h"
+#include "log.h"
void _loadUserSettings(struct UserNode *user) {
SYNCHRONIZE(cache_sync);
if ((row = mysql_fetch_row(res)) != NULL) {
struct event_user_registered_cache *cache = malloc(sizeof(*cache));
if (!cache) {
- perror("malloc() failed");
+ printf_log("main", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__);
return;
}
cache->user = user;