X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2FHandleInfoHandler.c;h=8a8a46ce3a0ce205b422c01907c28f62c9e78835;hp=edbf95b4aae6cbc7ec2cdaa58409345e86ff2cc9;hb=ee39770362f69ced5b52104b622582e882af0b77;hpb=88751acefe20e568fc945d7e5f5c11e0a9c7be60 diff --git a/src/HandleInfoHandler.c b/src/HandleInfoHandler.c index edbf95b..8a8a46c 100644 --- a/src/HandleInfoHandler.c +++ b/src/HandleInfoHandler.c @@ -22,6 +22,7 @@ #include "IRCEvents.h" #include "tools.h" #include "modules.h" +#include "log.h" #define AUTHSERV_NICK "AuthServ" @@ -40,7 +41,7 @@ static struct HandleInfoQueueEntry* addHandleInfoQueueEntry(struct ClientSocket struct HandleInfoQueueEntry *entry = malloc(sizeof(*entry)); if (!entry) { - perror("malloc() failed"); + printf_log("main", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__); return NULL; } SYNCHRONIZE(cache_sync);